1000
It is possible to clip the bar's caption to bar, when the time scale is changed

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Task");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,48);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("12/27/2000",213)));
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.Pattern(32/*exPatternBox*/);
			com_Bar.Height(13);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1","This is a bit of text that get's clipped");
		com_Items.ItemBar(h,"K1",4/*exBarHAlignCaption*/,COMVariant::createFromInt(4));
		com_Items.ItemBar(h,"K1",6/*exBarToolTip*/,com_Items.ItemBar(h,"K1",3/*exBarCaption*/));
		h = com_Items.AddItem("Task 2");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1","This is a bit of text that is not clipped");
		com_Items.ItemBar(h,"K1",4/*exBarHAlignCaption*/,COMVariant::createFromInt(1));
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,48);
}
*/
999
How can I change the color for all bars with the key matching a pattern

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,64);
	exg2antt1.Debug(true);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"B1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/17/2001",213)),"B2");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K3");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"B4");
		com_Items.ItemBar(0,"<B*>",33/*exBarColor*/,COMVariant::createFromInt(255));
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,64);
}
*/
998
How can I change the color for all bars in the same item with the key matching a pattern

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,64);
	exg2antt1.Debug(true);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"B1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/17/2001",213)),"B2");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K3");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K4");
		com_Items.ItemBar(h,"<B*>",33/*exBarColor*/,COMVariant::createFromInt(255));
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,64);
}
*/
997
How can I change the color for all bars in the same item

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K3");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K4");
		com_Items.ItemBar(h,"<*>",33/*exBarColor*/,COMVariant::createFromInt(255));
}
996
How can I write a special number for each date related to a bar

public void init()
{
	COM com_Chart,com_Items,com_Note,com_Note1,com_Note2,com_Note3,com_Note4,com_Note5,com_Notes;
	anytype var_Chart,var_Items,var_Note,var_Note1,var_Note2,var_Note3,var_Note4,var_Note5,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,32);
		com_Chart.LevelCount(2);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"1");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("N1",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note = var_Note;
			com_Note.RelativePosition("S+2");
			com_Note.PartText(0/*exNoteStart*/,"4");
			com_Note.PartFixedWidth(0/*exNoteStart*/,18);
			com_Note.PartHOffset(0/*exNoteStart*/,-9);
			com_Note.PartBackColor(0/*exNoteStart*/,WinApi::RGB2int(255,255,0));
			com_Note.ShowLink(0/*exNoteLinkHidden*/);
			com_Note.PartVisible(0/*exNoteStart*/,true);
		var_Note1 = com_Notes.Add("N2",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note1 = var_Note1;
			com_Note1.RelativePosition("S+3");
			com_Note1.PartText(0/*exNoteStart*/,"4");
			com_Note1.PartFixedWidth(0/*exNoteStart*/,18);
			com_Note1.PartHOffset(0/*exNoteStart*/,-9);
			com_Note1.PartBackColor(0/*exNoteStart*/,WinApi::RGB2int(255,255,0));
			com_Note1.ShowLink(0/*exNoteLinkHidden*/);
			com_Note1.PartVisible(0/*exNoteStart*/,true);
		var_Note2 = com_Notes.Add("N3",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note2 = var_Note2;
			com_Note2.RelativePosition("S+4");
			com_Note2.PartText(0/*exNoteStart*/,"5");
			com_Note2.PartFixedWidth(0/*exNoteStart*/,18);
			com_Note2.PartHOffset(0/*exNoteStart*/,-9);
			com_Note2.PartBackColor(0/*exNoteStart*/,WinApi::RGB2int(0,255,0));
			com_Note2.ShowLink(0/*exNoteLinkHidden*/);
			com_Note2.PartVisible(0/*exNoteStart*/,true);
		var_Note3 = com_Notes.Add("N4",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note3 = var_Note3;
			com_Note3.RelativePosition("S+5");
			com_Note3.PartText(0/*exNoteStart*/,"5");
			com_Note3.PartFixedWidth(0/*exNoteStart*/,18);
			com_Note3.PartHOffset(0/*exNoteStart*/,-9);
			com_Note3.PartBackColor(0/*exNoteStart*/,WinApi::RGB2int(0,255,0));
			com_Note3.ShowLink(0/*exNoteLinkHidden*/);
			com_Note3.PartVisible(0/*exNoteStart*/,true);
		var_Note4 = com_Notes.Add("N5",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note4 = var_Note4;
			com_Note4.RelativePosition("S+6");
			com_Note4.PartText(0/*exNoteStart*/,"8");
			com_Note4.PartFixedWidth(0/*exNoteStart*/,18);
			com_Note4.PartHOffset(0/*exNoteStart*/,-9);
			com_Note4.PartBackColor(0/*exNoteStart*/,WinApi::RGB2int(255,0,0));
			com_Note4.ShowLink(0/*exNoteLinkHidden*/);
			com_Note4.PartVisible(0/*exNoteStart*/,true);
		var_Note5 = com_Notes.Add("Z",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note5 = var_Note5;
			com_Note5.RelativePosition("E");
			com_Note5.PartText(0/*exNoteStart*/,"4");
			com_Note5.PartFixedWidth(0/*exNoteStart*/,18);
			com_Note5.PartHOffset(0/*exNoteStart*/,-9);
			com_Note5.PartBackColor(0/*exNoteStart*/,WinApi::RGB2int(255,128,0));
			com_Note5.PartCanMove(0/*exNoteStart*/,true);
			com_Note5.ShowLink(0/*exNoteLinkHidden*/);
			com_Note5.PartVisible(0/*exNoteStart*/,true);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,32);
}
*/
995
How can I assign a note to be always in the center of the bar

public void init()
{
	COM com_Items,com_Note,com_Notes;
	anytype var_Items,var_Note,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("Note",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note = var_Note;
			com_Note.RelativePosition(COMVariant::createFromReal(0.5));
			com_Note.PartText(0/*exNoteStart*/,"note<br>center");
			com_Note.PartBackColor(0/*exNoteStart*/,WinApi::RGB2int(255,255,0));
			com_Note.PartVisible(1/*exNoteEnd*/,false);
			com_Note.ShowLink(0/*exNoteLinkHidden*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
994
How can I assign a note relative to the start of the bar, and let it be movable

public void init()
{
	COM com_Items,com_Note,com_Notes;
	anytype var_Items,var_Note,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("Note",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note = var_Note;
			com_Note.RelativePosition("S+1");
			com_Note.PartText(0/*exNoteStart*/,"<%d%>");
			com_Note.PartFixedWidth(0/*exNoteStart*/,18);
			com_Note.PartHOffset(0/*exNoteStart*/,9);
			com_Note.PartCanMove(0/*exNoteStart*/,true);
			com_Note.PartBackColor(0/*exNoteStart*/,WinApi::RGB2int(255,255,0));
			com_Note.PartVisible(1/*exNoteEnd*/,false);
			com_Note.ShowLink(0/*exNoteLinkHidden*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
993
How can I associate a note relative to the start of the bar

public void init()
{
	COM com_Items,com_Note,com_Notes;
	anytype var_Items,var_Note,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("Note",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note = var_Note;
			com_Note.RelativePosition("S+1");
			com_Note.PartText(0/*exNoteStart*/,"<%d%>");
			com_Note.PartFixedWidth(0/*exNoteStart*/,18);
			com_Note.PartHOffset(0/*exNoteStart*/,9);
			com_Note.PartBackColor(0/*exNoteStart*/,WinApi::RGB2int(255,255,0));
			com_Note.PartVisible(1/*exNoteEnd*/,false);
			com_Note.ShowLink(0/*exNoteLinkHidden*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
992
How can I associate a note relative to the end of the bar, so if the bar is resized at the end, the not is moved accordingly

public void init()
{
	COM com_Items,com_Note,com_Notes;
	anytype var_Items,var_Note,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("Note",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note = var_Note;
			com_Note.RelativePosition("E-1");
			com_Note.PartText(0/*exNoteStart*/,"<%d%>");
			com_Note.PartFixedWidth(0/*exNoteStart*/,18);
			com_Note.PartHOffset(0/*exNoteStart*/,9);
			com_Note.PartVisible(1/*exNoteEnd*/,false);
			com_Note.ShowLink(0/*exNoteLinkHidden*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
991
How can I associate a note relative to the end of the bar, so if the bar is resized at the end, the not is moved accordingly

public void init()
{
	COM com_Items,com_Note,com_Notes;
	anytype var_Items,var_Note,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("Note",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note = var_Note;
			com_Note.RelativePosition(COMVariant::createFromInt(1));
			com_Note.PartText(0/*exNoteStart*/,"End");
			com_Note.PartVisible(1/*exNoteEnd*/,false);
			com_Note.ShowLink(0/*exNoteLinkHidden*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
990
How can I hide a bar without removing it
public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,128);
		com_Chart.LevelCount(2);
	exg2antt1.HeaderVisible(1/*exHeaderVisibleExtendLevels*/);
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"B1");
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/14/2001",213)),"B2");
		com_Items.AddLink("L1",com_Items.FindItem("Item 1",COMVariant::createFromInt(0)),"B1",com_Items.FindItem("Item 2",COMVariant::createFromInt(0)),"B2");
		com_Items.ItemBar(com_Items.FirstVisibleItem(),com_Items.FirstItemBar(com_Items.FirstVisibleItem()),19/*exBarTransparent*/,COMVariant::createFromInt(100));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,128);
}
*/
989
How can I align the caption in the note

public void init()
{
	COM com_Items,com_Note,com_Note1,com_Notes;
	anytype var_Items,var_Note,var_Note1,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("N1",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note = var_Note;
			com_Note.ShowLink(0/*exNoteLinkHidden*/);
			com_Note.PartVisible(1/*exNoteEnd*/,false);
			com_Note.PartText(0/*exNoteStart*/,"S <b><%dd%></b>");
			com_Note.PartFixedWidth(0/*exNoteStart*/,48);
			com_Note.PartAlignment(0/*exNoteStart*/,0/*LeftAlignment*/);
			com_Note.PartVOffset(0/*exNoteStart*/,17);
		var_Note1 = com_Notes.Add("N2",exg2antt1.Items().FirstVisibleItem(),"1",""); com_Note1 = var_Note1;
			com_Note1.RelativePosition(COMVariant::createFromInt(1));
			com_Note1.ShowLink(0/*exNoteLinkHidden*/);
			com_Note1.PartVisible(1/*exNoteEnd*/,false);
			com_Note1.PartText(0/*exNoteStart*/,"E <b><%dd%></b>");
			com_Note1.PartFixedWidth(0/*exNoteStart*/,48);
			com_Note1.PartAlignment(0/*exNoteStart*/,2/*RightAlignment*/);
			com_Note1.PartVOffset(0/*exNoteStart*/,17);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
988
How I can assign a note and let user move the note relative to the bar

public void init()
{
	COM com_Items,com_Note,com_Notes;
	anytype var_Items,var_Note,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("Note",exg2antt1.Items().FirstVisibleItem(),"1","End"); com_Note = var_Note;
			com_Note.PartText(0/*exNoteStart*/,"Day<br> <%dd%>");
			com_Note.PartCanMove(0/*exNoteStart*/,true);
			com_Note.PartVOffset(0/*exNoteStart*/,16);
			com_Note.PartTransparency(0/*exNoteStart*/,30);
			com_Note.PartToolTip(0/*exNoteStart*/,"Click the note and start moving to a new position.");
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
987
How can I assign a picture as a note associated with a bar

public void init()
{
	COM com_Items,com_Note,com_Note1,com_Notes;
	anytype var_Items,var_Note,var_Note1,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
	exg2antt1.HTMLPicture("pic2","c:\\exontrol\\images\\auction.gif");
	exg2antt1.AntiAliasing(true);
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1");
		h = com_Items.AddItem("Task 2");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/7/2001",213)),COMVariant::createFromDate(str2Date("1/11/2001",213)),"2");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("1",exg2antt1.Items().ItemByIndex(0),"1","<img>pic1</img>"); com_Note = var_Note;
			com_Note.PartShadow(1/*exNoteEnd*/,false);
			com_Note.PartBorderSize(1/*exNoteEnd*/,0);
			com_Note.ClearPartBackColor(1/*exNoteEnd*/);
			com_Note.PartHOffset(1/*exNoteEnd*/,-64);
			com_Note.PartCanMove(1/*exNoteEnd*/,true);
		var_Note1 = com_Notes.Add("2",exg2antt1.Items().ItemByIndex(1),"2","<img>pic2</img>"); com_Note1 = var_Note1;
			com_Note1.PartShadow(1/*exNoteEnd*/,false);
			com_Note1.PartBorderSize(1/*exNoteEnd*/,0);
			com_Note1.ClearPartBackColor(1/*exNoteEnd*/);
			com_Note1.RelativePosition(COMVariant::createFromInt(1));
			com_Note1.PartCanMove(1/*exNoteEnd*/,true);
			com_Note1.LinkColor(WinApi::RGB2int(255,0,0));
			com_Note1.LinkWidth(2);
			com_Note1.LinkStyle(2/*exLinkDot*/);
			com_Note1.ShowLink(1/*exNoteLinkVisible*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
986
How can I assign a picture as a note associated with a bar

public void init()
{
	COM com_Items,com_Note,com_Note1,com_Notes;
	anytype var_Items,var_Note,var_Note1,var_Notes;
	int h;
	str var_s;
	;

	super();

	exg2antt1.BeginUpdate();
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exg2antt1.Images(COMVariant::createFromStr(var_s));
	exg2antt1.AntiAliasing(true);
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1");
		h = com_Items.AddItem("Task 2");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/7/2001",213)),COMVariant::createFromDate(str2Date("1/11/2001",213)),"2");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("1",exg2antt1.Items().ItemByIndex(0),"1","<img>1</img>"); com_Note = var_Note;
			com_Note.PartShadow(1/*exNoteEnd*/,false);
			com_Note.PartBorderSize(1/*exNoteEnd*/,0);
			com_Note.ClearPartBackColor(1/*exNoteEnd*/);
		var_Note1 = com_Notes.Add("2",exg2antt1.Items().ItemByIndex(1),"2","<img>2</img>...<img>3</img>"); com_Note1 = var_Note1;
			com_Note1.PartShadow(1/*exNoteEnd*/,false);
			com_Note1.PartBorderSize(1/*exNoteEnd*/,0);
			com_Note1.ClearPartBackColor(1/*exNoteEnd*/);
			com_Note1.RelativePosition(COMVariant::createFromInt(1));
			com_Note1.PartCanMove(1/*exNoteEnd*/,true);
			com_Note1.LinkColor(WinApi::RGB2int(255,0,0));
			com_Note1.LinkWidth(2);
			com_Note1.LinkStyle(2/*exLinkDot*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
985
How can I put a box assigned to a DATE

public void init()
{
	COM com_Items,com_Note,com_Note1,com_Notes;
	anytype var_Items,var_Note,var_Note1,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		h = com_Items.AddItem("Item 2");
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		var_Note = com_Notes.Add("D1",exg2antt1.Items().FirstVisibleItem(),exg2antt1.Chart().FirstVisibleDate(),"Date:<br><%dd%>/<%mm%><br><b><%yyyy%></b>"); com_Note = var_Note;
			com_Note.PartCanMove(1/*exNoteEnd*/,true);
			com_Note.PartVOffset(1/*exNoteEnd*/,20);
			com_Note.PartHOffset(1/*exNoteEnd*/,20);
		var_Note1 = com_Notes.Add("D2",exg2antt1.Items().NextVisibleItem(exg2antt1.Items().FirstVisibleItem()),COMVariant::createFromDate(str2Date("1/7/2001",213)),"Date:<br><%dd%>/<%mm%><br><b><%yyyy%></b>"); com_Note1 = var_Note1;
			com_Note1.PartVisible(0/*exNoteStart*/,true);
			com_Note1.PartText(0/*exNoteStart*/,"<b><%d%></b>");
			com_Note1.PartCanMove(1/*exNoteEnd*/,true);
			com_Note1.PartVOffset(1/*exNoteEnd*/,20);
			com_Note1.PartHOffset(1/*exNoteEnd*/,20);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
984
How can I add a note or a box associated with a bar

public void init()
{
	COM com_Items,com_Note,com_Notes;
	anytype var_Items,var_Note,var_Notes;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"1","Center");
		com_Items.ItemBar(h,"1",44/*exBarExtraCaption*/,"left");
		com_Items.ItemBar(h,"1",45/*exBarExtraCaptionHAlign*/,COMVariant::createFromInt(16));
		h = com_Items.AddItem("Task 2");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/7/2001",213)),COMVariant::createFromDate(str2Date("1/11/2001",213)),"2","Center");
		com_Items.ItemBar(h,"2",44/*exBarExtraCaption*/,"right");
		com_Items.ItemBar(h,"2",45/*exBarExtraCaptionHAlign*/,COMVariant::createFromInt(18));
	var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes;
		com_Notes.Add("1S",exg2antt1.Items().FirstVisibleItem(),"1","Start");
		var_Note = COM::createFromObject(com_Notes.Add("1F",exg2antt1.Items().FirstVisibleItem(),"1","End")); com_Note = var_Note;
		com_Note.RelativePosition(COMVariant::createFromInt(1));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
983
Is it possible to define different working hours for every week day

public void init()
{
	COM com_Chart,com_Items,com_Level,com_Level1;
	anytype var_Chart,var_Items,var_Level,var_Level1;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,14);
		com_Chart.NonworkingDays(0);
		com_Chart.NonworkingHours(0);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.LevelCount(2);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Alignment(1/*CenterAlignment*/);
			com_Level.Label("<%dddd%>");
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label("<%hh%>");
			com_Level1.Count(6);
		com_Chart.UnitWidth(16);
	exg2antt1.Columns().Add("");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem(COMVariant::createFromInt(1));
		com_Items.ItemNonworkingUnits(h,COMVariant::createFromBoolean(false),"weekday(value) != 1 or (weekday(value) = 1 and not ( hour(value) >= 9 and hour(value) <= 14 ))");
		h = com_Items.AddItem(COMVariant::createFromInt(2));
		com_Items.ItemNonworkingUnits(h,COMVariant::createFromBoolean(false),"weekday(value) = 2 and ( hour(value) >= 9 and hour(value) <= 14 )");
		h = com_Items.AddItem(COMVariant::createFromInt(3));
		com_Items.ItemNonworkingUnits(h,COMVariant::createFromBoolean(false),"weekday(value) = 3");
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,14);
}
*/
982
How can I automatically update the exBarPercent value using a slider control

public void init()
{
	COM com_Bar,com_Bars,com_Chart,com_Column,com_Editor,com_Items;
	anytype var_Bar,var_Bars,var_Chart,var_Column,var_Editor,var_Items;
	int i;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Items().AllowCellValueToItemBar(true);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,128);
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar = COM::createFromObject(com_Bars).Add("Task%Progress"); com_Bar = var_Bar;
		com_Bar.Shortcut("Percent");
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Percent")); com_Column = var_Column;
		com_Column.Def(18/*exCellValueToItemBarProperty*/,COMVariant::createFromInt(518));
		com_Column.Def(19/*exCellValueToItemBarKey*/,"P");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		i = com_Items.AddItem(COMVariant::createFromInt(0));
		com_Items.CellBold(i,COMVariant::createFromInt(0),true);
		var_Editor = COM::createFromObject(com_Items.CellEditor(i,COMVariant::createFromInt(0))); com_Editor = var_Editor;
		com_Editor.EditType(20/*SliderType*/);
		com_Items.AddBar(i,"Percent",COMVariant::createFromDate(str2Date("1/2/2002",213)),COMVariant::createFromDate(str2Date("1/6/2002",213)),"P");
		com_Items.ItemBar(i,"P",14/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
		com_Items.CellValue(i,COMVariant::createFromInt(0),COMVariant::createFromInt(50));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,128);
}
*/
981
Is there any automatic way to change a property for all bars in the chart
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K3");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K4");
		com_Items.ItemBar(0,"<*>",33/*exBarColor*/,COMVariant::createFromInt(255));
}
980
How can I assign an icon to a bar and I get notified when I click it

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	exg2antt1.BeginUpdate();
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exg2antt1.Images(COMVariant::createFromStr(var_s));
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),"","Caption");
		com_Items.ItemBar(h,"",44/*exBarExtraCaption*/,"<a1><img>1:8</img></a><a1><img>2</img></a>");
		com_Items.ItemBar(h,"",45/*exBarExtraCaptionHAlign*/,COMVariant::createFromInt(16));
		com_Items.ItemBar(h,"",47/*exBarExtraCaptionHOffset*/,COMVariant::createFromInt(5));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
979
How can I assign an icon to a bar so I do not break its caption

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	exg2antt1.BeginUpdate();
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exg2antt1.Images(COMVariant::createFromStr(var_s));
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),"","Caption");
		com_Items.ItemBar(h,"",44/*exBarExtraCaption*/,"<img>1</img>");
		com_Items.ItemBar(h,"",45/*exBarExtraCaptionHAlign*/,COMVariant::createFromInt(16));
		com_Items.ItemBar(h,"",47/*exBarExtraCaptionHOffset*/,COMVariant::createFromInt(5));
		com_Items.ItemBar(h,"",48/*exBarExtraCaptionVOffset*/,COMVariant::createFromInt(2));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
978
How can I assign multiple lables to the same bar

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"","Right");
		com_Items.ItemBar(h1,"",4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
		com_Items.AddBar(h1,"",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"T1","Left");
		com_Items.ItemBar(h1,"T1",4/*exBarHAlignCaption*/,COMVariant::createFromInt(16));
		com_Items.AddBar(h1,"",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"T2","Center");
		com_Items.GroupBars(h1,"",true,h1,"T1",true);
		com_Items.GroupBars(h1,"",true,h1,"T1",false);
		com_Items.GroupBars(h1,"",true,h1,"T2",true);
		com_Items.GroupBars(h1,"",false,h1,"T2",false);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
977
Is there any way to have more Captions on a bar than one

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"","Right");
		com_Items.ItemBar(h1,"",4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
		com_Items.AddBar(h1,"",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"T1","Left");
		com_Items.ItemBar(h1,"T1",4/*exBarHAlignCaption*/,COMVariant::createFromInt(16));
		com_Items.GroupBars(h1,"",true,h1,"T1",true);
		com_Items.GroupBars(h1,"",true,h1,"T1",false);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
976
How can I assign multiple lables to the same bar at once

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"","Center");
		com_Items.ItemBar(h,"",44/*exBarExtraCaption*/,"left");
		com_Items.ItemBar(h,"",45/*exBarExtraCaptionHAlign*/,COMVariant::createFromInt(16));
		h = com_Items.AddItem("Task 2");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/7/2001",213)),COMVariant::createFromDate(str2Date("1/11/2001",213)),"","Center");
		com_Items.ItemBar(h,"",44/*exBarExtraCaption*/,"right");
		com_Items.ItemBar(h,"",45/*exBarExtraCaptionHAlign*/,COMVariant::createFromInt(18));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
975
How can I limit the duration or length of the bar
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exg2antt1.Chart().ScrollRange(0/*exStartDate*/,COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exg2antt1.Chart().ScrollRange(1/*exEndDate*/,COMVariant::createFromDate(str2Date("1/7/2001",213)));
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(0,128);
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.ItemBar(h,"",36/*exBarMinDuration*/,COMVariant::createFromInt(2));
		com_Items.ItemBar(h,"",37/*exBarMaxDuration*/,COMVariant::createFromInt(5));
		com_Items.ItemBar(h,"",3/*exBarCaption*/,"Min=2 / Max=5");
		com_Items.ItemBar(h,"",4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,128);
}
*/
974
I have an EBN file how can I apply different colors to it, so no need to create a new one

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h,hC;
	;

	super();

	exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	exg2antt1.SelBackColor(exg2antt1.BackColor());
	exg2antt1.SelForeColor(exg2antt1.ForeColor());
	exg2antt1.HasLines(0/*exNoLine*/);
	exg2antt1.Columns().Add("Default");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		hC = com_Items.InsertItem(h,,"Default");
		com_Items.ItemBackColor(hC,0x1000000);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		hC = com_Items.InsertItem(h,,"Light Green");
		com_Items.ItemBackColor(hC,0x100ff00);
		exg2antt1.Chart().ItemBackColor(hC,0x100ff00);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		hC = com_Items.InsertItem(h,,"Dark Green");
		com_Items.ItemBackColor(hC,0x1007f00);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		hC = com_Items.InsertItem(h,,"Magenta");
		com_Items.ItemBackColor(hC,0x1ff7fff);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		hC = com_Items.InsertItem(h,,"Yellow");
		com_Items.ItemBackColor(hC,0x17fffff);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		com_Items.ExpandItem(h,true);
}
973
I need to specify the non-working hours for about 100 days for each item, but the scrolling is very slow. Is there any option to increase the speed

public void init()
{
	COM com_Chart,com_Items,com_Level,com_Level1;
	anytype var_Chart,var_Items,var_Level,var_Level1;
	str var_s,var_s1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.AllowChartScrollPage(true);
	exg2antt1.Columns().Add("Non-Work");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2009 16:00:00",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,52);
		com_Chart.LevelCount(2);
		com_Chart.UnitWidth(16);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<r><%d%>-<%mmm%>");
			com_Level.Unit(4096/*exDay*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label("<%hh%>");
			com_Level1.Unit(65536/*exHour*/);
			com_Level1.Count(2);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddItem("Default");
		var_s = "date(shortdate(value)) case(default:0;#4/5/2009# : hour(value) >= 6 and hour(value) <= 12; #4/6/2009# : hour(value) >= 6 and hou";
		var_s = var_s + "r(value) <= 12; #4/7/2009# : hour(value) >= 6 and hour(value) <= 12; #4/8/2009# : hour(value) >= 6 and hour(value) <= 12; #4/9/2";
		var_s = var_s + "009# : hour(value) >= 6 and hour(value) <= 12; #4/10/2009# : hour(value) >= 6 and hour(value) <= 12; #4/11/2009# : hour(value) >";
		var_s = var_s + "= 6 and hour(value) <= 12; #4/12/2009# : hour(value) >= 6 and hour(value) <= 12; #4/13/2009# : hour(value) >= 6 and hour(value) ";
		var_s = var_s + "<= 12; #4/14/2009# : hour(value) >= 6 and hour(value) <= 12; #4/15/2009# : hour(value) >= 6 and hour(value) <= 12; #4/16/2009# :";
		var_s = var_s + " hour(value) >= 6 and hour(value) <= 12; #4/17/2009# : hour(value) >= 6 and hour(value) <= 12; #4/18/2009# : hour(value) >= 6 an";
		var_s = var_s + "d hour(value) <= 12; #4/19/2009# : hour(value) >= 6 and hour(value) <= 12; #4/20/2009# : hour(value) >= 6 and hour(value) <= 12;";
		var_s = var_s + " #4/21/2009# : hour(value) >= 6 and hour(value) <= 12; #4/22/2009# : hour(value) >= 6 and hour(value) <= 12; #4/23/2009# : hour(";
		var_s = var_s + "value) >= 6 and hour(value) <= 12; #4/24/2009# : hour(value) >= 6 and hour(value) <= 12; #4/25/2009# : hour(value) >= 6 and hour";
		var_s = var_s + "(value) <= 12; #4/26/2009# : hour(value) >= 6 and hour(value) <= 12; #4/27/2009# : hour(value) >= 6 and hour(value) <= 12; #4/28";
		var_s = var_s + "/2009# : hour(value) >= 6 and hour(value) <= 12; #4/29/2009# : hour(value) >= 6 and hour(value) <= 12; #4/30/2009# : hour(value)";
		var_s = var_s + " >= 6 and hour(value) <= 12; #5/1/2009# : hour(value) >= 6 and hour(value) <= 12; #5/2/2009# : hour(value) >= 6 and hour(value) ";
		var_s = var_s + "<= 12; #5/3/2009# : hour(value) >= 6 and hour(value) <= 12; #5/4/2009# : hour(value) >= 6 and hour(value) <= 12; #5/5/2009# : ho";
		var_s = var_s + "ur(value) >= 6 and hour(value) <= 12; #5/6/2009# : hour(value) >= 6 and hour(value) <= 12; #5/7/2009# : hour(value) >= 6 and hou";
		var_s = var_s + "r(value) <= 12; #5/8/2009# : hour(value) >= 6 and hour(value) <= 12; #5/9/2009# : hour(value) >= 6 and hour(value) <= 12; #5/10/";
		var_s = var_s + "2009# : hour(value) >= 6 and hour(value) <= 12; #5/11/2009# : hour(value) >= 6 and hour(value) <= 12; #5/13/2009# : hour(value) ";
		var_s = var_s + ">= 6 and hour(value) <= 12; #5/14/2009# : hour(value) >= 6 and hour(value) <= 12; #5/15/2009# : hour(value) >= 6 and hour(value)";
		var_s = var_s + " <= 12; #5/16/2009# : hour(value) >= 6 and hour(value) <= 12; #5/17/2009# : hour(value) >= 6 and hour(value) <= 12; #5/18/2009# ";
		var_s = var_s + ": hour(value) >= 6 and hour(value) <= 12; #5/19/2009# : hour(value) >= 6 and hour(value) <= 12; #5/20/2009# : hour(value) >= 6 a";
		var_s = var_s + "nd hour(value) <= 12; #5/21/2009# : hour(value) >= 6 and hour(value) <= 12; #5/22/2009# : hour(value) >= 6 and hour(value) <= 12";
		var_s = var_s + "; #5/23/2009# : hour(value) >= 6 and hour(value) <= 12; #5/24/2009# : hour(value) >= 6 and hour(value) <= 12; #5/25/2009# : hour";
		var_s = var_s + "(value) >= 6 and hour(value) <= 12; #5/26/2009# : hour(value) >= 6 and hour(value) <= 12; #5/27/2009# : hour(value) >= 6 and hou";
		var_s = var_s + "r(value) <= 12; #5/28/2009# : hour(value) >= 6 and hour(value) <= 12; #5/29/2009# : hour(value) >= 6 and hour(value) <= 12; #5/3";
		var_s = var_s + "0/2009# : hour(value) >= 6 and hour(value) <= 12; #5/31/2009# : hour(value) >= 6 and hour(value) <= 12; #6/1/2009# : hour(value)";
		var_s = var_s + " >= 6 and hour(value) <= 12; #6/2/2009# : hour(value) >= 6 and hour(value) <= 12; #6/3/2009# : hour(value) >= 6 and hour(value) ";
		var_s = var_s + "<= 12; #6/4/2009# : hour(value) >= 6 and hour(value) <= 12; #6/5/2009# : hour(value) >= 6 and hour(value) <= 12; #6/6/2009# : ho";
		var_s = var_s + "ur(value) >= 6 and hour(value) <= 12; #6/7/2009# : hour(value) >= 6 and hour(value) <= 12; #6/8/2009# : hour(value) >= 6 and hou";
		var_s = var_s + "r(value) <= 12; #6/9/2009# : hour(value) >= 6 and hour(value) <= 12; #6/10/2009# : hour(value) >= 6 and hour(value) <= 12; #6/11";
		var_s = var_s + "/2009# : hour(value) >= 6 and hour(value) <= 12; #6/12/2009# : hour(value) >= 6 and hour(value) <= 12; #6/13/2009# : hour(value)";
		var_s = var_s + " >= 6 and hour(value) <= 12; #6/14/2009# : hour(value) >= 6 and hour(value) <= 12; #6/15/2009# : hour(value) >= 6 and hour(value";
		var_s = var_s + ") <= 12; #6/16/2009# : hour(value) >= 6 and hour(value) <= 12; #6/17/2009# : hour(value) >= 6 and hour(value) <= 12; #6/18/2009#";
		var_s = var_s + " : hour(value) >= 6 and hour(value) <= 12; #6/19/2009# : hour(value) >= 6 and hour(value) <= 12; #6/21/2009# : hour(value) >= 6 ";
		var_s = var_s + "and hour(value) <= 12; #6/22/2009# : hour(value) >= 6 and hour(value) <= 12; #6/23/2009# : hour(value) >= 6 and hour(value) <= 1";
		var_s = var_s + "2; #6/24/2009# : hour(value) >= 6 and hour(value) <= 12; #6/25/2009# : hour(value) >= 6 and hour(value) <= 12; #6/26/2009# : hou";
		var_s = var_s + "r(value) >= 6 and hour(value) <= 12; #6/27/2009# : hour(value) >= 6 and hour(value) <= 12; #6/28/2009# : hour(value) >= 6 and ho";
		var_s = var_s + "ur(value) <= 12; #6/29/2009# : hour(value) >= 6 and hour(value) <= 12; #6/30/2009# : hour(value) >= 6 and hour(value) <= 12; #7/";
		var_s = var_s + "1/2009# : hour(value) >= 6 and hour(value) <= 12; #7/2/2009# : hour(value) >= 6 and hour(value) <= 12; #7/3/2009# : hour(value) ";
		var_s = var_s + ">= 6 and hour(value) <= 12; #7/4/2009# : hour(value) >= 6 and hour(value) <= 12; #7/5/2009# : hour(value) >= 6 and hour(value) <";
		var_s = var_s + "= 12; #7/6/2009# : hour(value) >= 6 and hour(value) <= 12; #7/7/2009# : hour(value) >= 6 and hour(value) <= 12; #7/8/2009# : hou";
		var_s = var_s + "r(value) >= 6 and hour(value) <= 12; #7/9/2009# : hour(value) >= 6 and hour(value) <= 12; #7/10/2009# : hour(value) >= 6 and hou";
		var_s = var_s + "r(value) <= 12; #7/11/2009# : hour(value) >= 6 and hour(value) <= 12; #7/12/2009# : hour(value) >= 6 and hour(value) <= 12; #7/1";
		var_s = var_s + "3/2009# : hour(value) >= 6 and hour(value) <= 12; #7/14/2009# : hour(value) >= 6 and hour(value) <= 12)";
		com_Items.ItemNonworkingUnits(com_Items.AddItem("Test"),COMVariant::createFromBoolean(false),var_s);
		var_s1 = "date(shortdate(value)) case(default:0;#4/5/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/6/";
		var_s1 = var_s1 + "2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/7/2009# : hour(value) >= 6 and hour(value) <=";
		var_s1 = var_s1 + " 10 or hour(value) in (16,17,20,21); #4/8/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/9/2";
		var_s1 = var_s1 + "009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/10/2009# : hour(value) >= 6 and hour(value) <=";
		var_s1 = var_s1 + " 10 or hour(value) in (16,17,20,21); #4/11/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/12";
		var_s1 = var_s1 + "/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/13/2009# : hour(value) >= 6 and hour(value) ";
		var_s1 = var_s1 + "<= 10 or hour(value) in (16,17,20,21); #4/14/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/";
		var_s1 = var_s1 + "15/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/16/2009# : hour(value) >= 6 and hour(value";
		var_s1 = var_s1 + ") <= 10 or hour(value) in (16,17,20,21); #4/17/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #";
		var_s1 = var_s1 + "4/18/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/19/2009# : hour(value) >= 6 and hour(val";
		var_s1 = var_s1 + "ue) <= 10 or hour(value) in (16,17,20,21); #4/20/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21);";
		var_s1 = var_s1 + " #4/21/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/22/2009# : hour(value) >= 6 and hour(v";
		var_s1 = var_s1 + "alue) <= 10 or hour(value) in (16,17,20,21); #4/23/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21";
		var_s1 = var_s1 + "); #4/24/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/25/2009# : hour(value) >= 6 and hour";
		var_s1 = var_s1 + "(value) <= 10 or hour(value) in (16,17,20,21); #4/26/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,";
		var_s1 = var_s1 + "21); #4/27/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/28/2009# : hour(value) >= 6 and ho";
		var_s1 = var_s1 + "ur(value) <= 10 or hour(value) in (16,17,20,21); #4/29/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,2";
		var_s1 = var_s1 + "0,21); #4/30/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/1/2009# : hour(value) >= 6 and h";
		var_s1 = var_s1 + "our(value) <= 10 or hour(value) in (16,17,20,21); #5/2/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,2";
		var_s1 = var_s1 + "0,21); #5/3/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/4/2009# : hour(value) >= 6 and ho";
		var_s1 = var_s1 + "ur(value) <= 10 or hour(value) in (16,17,20,21); #5/5/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20";
		var_s1 = var_s1 + ",21); #5/6/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/7/2009# : hour(value) >= 6 and hou";
		var_s1 = var_s1 + "r(value) <= 10 or hour(value) in (16,17,20,21); #5/8/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,";
		var_s1 = var_s1 + "21); #5/9/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/10/2009# : hour(value) >= 6 and hou";
		var_s1 = var_s1 + "r(value) <= 10 or hour(value) in (16,17,20,21); #5/11/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20";
		var_s1 = var_s1 + ",21); #5/13/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/14/2009# : hour(value) >= 6 and h";
		var_s1 = var_s1 + "our(value) <= 10 or hour(value) in (16,17,20,21); #5/15/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,";
		var_s1 = var_s1 + "20,21); #5/16/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/17/2009# : hour(value) >= 6 and";
		var_s1 = var_s1 + " hour(value) <= 10 or hour(value) in (16,17,20,21); #5/18/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,1";
		var_s1 = var_s1 + "7,20,21); #5/19/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/20/2009# : hour(value) >= 6 a";
		var_s1 = var_s1 + "nd hour(value) <= 10 or hour(value) in (16,17,20,21); #5/21/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16";
		var_s1 = var_s1 + ",17,20,21); #5/22/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/23/2009# : hour(value) >= 6";
		var_s1 = var_s1 + " and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/24/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (";
		var_s1 = var_s1 + "16,17,20,21); #5/25/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/26/2009# : hour(value) >=";
		var_s1 = var_s1 + " 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/27/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in";
		var_s1 = var_s1 + " (16,17,20,21); #5/28/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/29/2009# : hour(value) ";
		var_s1 = var_s1 + ">= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/30/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) ";
		var_s1 = var_s1 + "in (16,17,20,21); #5/31/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/1/2009# : hour(value)";
		var_s1 = var_s1 + " >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/2/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) ";
		var_s1 = var_s1 + "in (16,17,20,21); #6/3/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/4/2009# : hour(value) ";
		var_s1 = var_s1 + ">= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/5/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) i";
		var_s1 = var_s1 + "n (16,17,20,21); #6/6/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/7/2009# : hour(value) >";
		var_s1 = var_s1 + "= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/8/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in";
		var_s1 = var_s1 + " (16,17,20,21); #6/9/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/10/2009# : hour(value) >";
		var_s1 = var_s1 + "= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/11/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) i";
		var_s1 = var_s1 + "n (16,17,20,21); #6/12/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/13/2009# : hour(value)";
		var_s1 = var_s1 + " >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/14/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value)";
		var_s1 = var_s1 + " in (16,17,20,21); #6/15/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/16/2009# : hour(valu";
		var_s1 = var_s1 + "e) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/17/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(valu";
		var_s1 = var_s1 + "e) in (16,17,20,21); #6/18/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/19/2009# : hour(va";
		var_s1 = var_s1 + "lue) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/21/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(va";
		var_s1 = var_s1 + "lue) in (16,17,20,21); #6/22/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/23/2009# : hour(";
		var_s1 = var_s1 + "value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/24/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(";
		var_s1 = var_s1 + "value) in (16,17,20,21); #6/25/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/26/2009# : hou";
		var_s1 = var_s1 + "r(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/27/2009# : hour(value) >= 6 and hour(value) <= 10 or hou";
		var_s1 = var_s1 + "r(value) in (16,17,20,21); #6/28/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/29/2009# : h";
		var_s1 = var_s1 + "our(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/30/2009# : hour(value) >= 6 and hour(value) <= 10 or h";
		var_s1 = var_s1 + "our(value) in (16,17,20,21); #7/1/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/2/2009# : h";
		var_s1 = var_s1 + "our(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/3/2009# : hour(value) >= 6 and hour(value) <= 10 or ho";
		var_s1 = var_s1 + "ur(value) in (16,17,20,21); #7/4/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/5/2009# : ho";
		var_s1 = var_s1 + "ur(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/6/2009# : hour(value) >= 6 and hour(value) <= 10 or hou";
		var_s1 = var_s1 + "r(value) in (16,17,20,21); #7/7/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/8/2009# : hou";
		var_s1 = var_s1 + "r(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/9/2009# : hour(value) >= 6 and hour(value) <= 10 or hour";
		var_s1 = var_s1 + "(value) in (16,17,20,21); #7/10/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/11/2009# : ho";
		var_s1 = var_s1 + "ur(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/12/2009# : hour(value) >= 6 and hour(value) <= 10 or ho";
		var_s1 = var_s1 + "ur(value) in (16,17,20,21); #7/13/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/14/2009# : ";
		var_s1 = var_s1 + "hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21))";
		com_Items.ItemNonworkingUnits(com_Items.AddItem("Test"),COMVariant::createFromBoolean(false),var_s1);
		com_Items.AddItem("Default");
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,52);
}
*/
972
How can I use the CASE statement (CASE usage)
public void init()
{
	COM com_Column,com_Column1,com_Editor,com_Items;
	anytype var_Column,var_Column1,var_Editor,var_Items;
	str var_s;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Value")); com_Column = var_Column;
		com_Column.Width(24);
		var_Editor = COM::createFromObject(com_Column.Editor()); com_Editor = var_Editor;
		com_Editor.EditType(4/*SpinType*/);
	var_Column1 = COM::createFromVariant(exg2antt1.Columns().Add("CASE - statment")); com_Column1 = var_Column1;
		var_s = "%0 case (default:'not found';1:%0;2:2*%0;3:3*%0;4:4*%0;5:5*%0;7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen';14:'Fourth";
		var_s = var_s + "een')";
		com_Column1.ComputedField(var_s);
		com_Column1.ToolTip(com_Column1.ComputedField());
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromInt(0));
		com_Items.AddItem(COMVariant::createFromInt(1));
		com_Items.AddItem(COMVariant::createFromInt(2));
	exg2antt1.EndUpdate();
}
971
How can I use the CASE statement (CASE usage)
public void init()
{
	COM com_Column,com_Column1,com_Editor,com_Items;
	anytype var_Column,var_Column1,var_Editor,var_Items;
	str var_s;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Value")); com_Column = var_Column;
		com_Column.Width(24);
		var_Editor = COM::createFromObject(com_Column.Editor()); com_Editor = var_Editor;
		com_Editor.EditType(4/*SpinType*/);
	var_Column1 = COM::createFromVariant(exg2antt1.Columns().Add("CASE - statment")); com_Column1 = var_Column1;
		var_s = "%0 case (default:'not found';1:'One';2:'Two';3:'Three';4:'Four';5:'Five';7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen'";
		var_s = var_s + ";14:'Fourtheen')";
		com_Column1.ComputedField(var_s);
		com_Column1.ToolTip(com_Column1.ComputedField());
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromInt(0));
		com_Items.AddItem(COMVariant::createFromInt(1));
		com_Items.AddItem(COMVariant::createFromInt(2));
	exg2antt1.EndUpdate();
}
970
I have seen the IN function but it returns -1 or 0. How can I display the value being found ( SWITCH usage )
public void init()
{
	COM com_Column,com_Column1,com_Editor,com_Items;
	anytype var_Column,var_Column1,var_Editor,var_Items;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Value")); com_Column = var_Column;
		com_Column.Width(24);
		var_Editor = COM::createFromObject(com_Column.Editor()); com_Editor = var_Editor;
		com_Editor.EditType(4/*SpinType*/);
	var_Column1 = COM::createFromVariant(exg2antt1.Columns().Add("SWITCH - statment")); com_Column1 = var_Column1;
		com_Column1.ComputedField("%0 switch ('not found', 1,2,3,4,5,7,8,9,11,13,14)");
		com_Column1.ToolTip(com_Column1.ComputedField());
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromInt(0));
		com_Items.AddItem(COMVariant::createFromInt(1));
		com_Items.AddItem(COMVariant::createFromInt(2));
	exg2antt1.EndUpdate();
}
969
I have a large collection of constant values and using or operator is a time consuming (IN usage). Is there any way to increase the speed to check if a value maches the collection
public void init()
{
	COM com_Column,com_Column1,com_Editor,com_Items;
	anytype var_Column,var_Column1,var_Editor,var_Items;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Value")); com_Column = var_Column;
		com_Column.Width(24);
		var_Editor = COM::createFromObject(com_Column.Editor()); com_Editor = var_Editor;
		com_Editor.EditType(4/*SpinType*/);
	var_Column1 = COM::createFromVariant(exg2antt1.Columns().Add("IN - statment")); com_Column1 = var_Column1;
		com_Column1.ComputedField("%0 in (1,2,3,4,5,7,8,9,11,13,14) ? 'found' : ''");
		com_Column1.ToolTip(com_Column1.ComputedField());
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromInt(0));
		com_Items.AddItem(COMVariant::createFromInt(1));
		com_Items.AddItem(COMVariant::createFromInt(2));
	exg2antt1.EndUpdate();
}
968
How can I automatically update the exBarPercent value using a slider control

public void init()
{
	COM com_Bar,com_Bars,com_Chart,com_Column,com_Editor,com_Items;
	anytype var_Bar,var_Bars,var_Chart,var_Column,var_Editor,var_Items;
	int i;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Items().AllowCellValueToItemBar(true);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,128);
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar = COM::createFromObject(com_Bars).Add("Task%Progress"); com_Bar = var_Bar;
		com_Bar.Shortcut("Percent");
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Percent")); com_Column = var_Column;
		com_Column.Def(18/*exCellValueToItemBarProperty*/,COMVariant::createFromInt(12));
		com_Column.Def(19/*exCellValueToItemBarKey*/,"P");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		i = com_Items.AddItem(COMVariant::createFromInt(0));
		com_Items.CellBold(i,COMVariant::createFromInt(0),true);
		var_Editor = com_Items.CellEditor(i,COMVariant::createFromInt(0)); com_Editor = var_Editor;
			com_Editor.EditType(20/*SliderType*/);
			com_Editor.Option(42/*exSliderStep*/,COMVariant::createFromReal(0.01));
			com_Editor.Option(40/*exSpinStep*/,COMVariant::createFromReal(0.01));
			com_Editor.Option(44/*exSliderMax*/,COMVariant::createFromInt(1));
			com_Editor.Option(41/*exSliderWidth*/,COMVariant::createFromInt(-100));
		com_Items.CellValueFormat(i,COMVariant::createFromInt(0),1/*exHTML*/);
		com_Items.AddBar(i,"Percent",COMVariant::createFromDate(str2Date("1/2/2002",213)),COMVariant::createFromDate(str2Date("1/6/2002",213)),"P");
		com_Items.ItemBar(i,"P",14/*exBarShowPercentCaption*/,COMVariant::createFromBoolean(true));
		com_Items.CellValue(i,COMVariant::createFromInt(0),COMVariant::createFromReal(0.5));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,128);
}
*/
967
How can I automatically update the exBarPercent value using a spin control

public void init()
{
	COM com_Bar,com_Bars,com_Chart,com_Column,com_Editor,com_Items;
	anytype var_Bar,var_Bars,var_Chart,var_Column,var_Editor,var_Items;
	int i;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Items().AllowCellValueToItemBar(true);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,128);
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar = COM::createFromObject(com_Bars).Add("Task%Progress"); com_Bar = var_Bar;
		com_Bar.Shortcut("Percent");
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Percent")); com_Column = var_Column;
		com_Column.Def(18/*exCellValueToItemBarProperty*/,COMVariant::createFromInt(12));
		com_Column.FormatColumn("((0:=round(dbl(%0)*100)) >= 50 ? '<font 8>'+ =:0 + '%</font>' : '<fgcolor=808080><font 6>'+ =:0 + '%</font></fgcolor>')");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		i = com_Items.AddItem(COMVariant::createFromInt(0));
		com_Items.CellBold(i,COMVariant::createFromInt(0),true);
		var_Editor = com_Items.CellEditor(i,COMVariant::createFromInt(0)); com_Editor = var_Editor;
			com_Editor.EditType(4/*SpinType*/);
			com_Editor.Option(40/*exSpinStep*/,COMVariant::createFromReal(0.01));
			com_Editor.Option(44/*exSliderMax*/,COMVariant::createFromInt(1));
		com_Items.CellValueFormat(i,COMVariant::createFromInt(0),1/*exHTML*/);
		com_Items.AddBar(i,"Percent",COMVariant::createFromDate(str2Date("1/2/2002",213)),COMVariant::createFromDate(str2Date("1/6/2002",213)));
		com_Items.CellValue(i,COMVariant::createFromInt(0),COMVariant::createFromReal(0.5));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,128);
}
*/
966
How do I specify for an item all units as being non-working units

public void init()
{
	COM com_Chart,com_Items,com_Level,com_Level1;
	anytype var_Chart,var_Items,var_Level,var_Level1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.AllowChartScrollPage(true);
	exg2antt1.Columns().Add("Non-Work");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.AllowCreateBar(1/*exCreateBarAuto*/);
		com_Chart.FirstVisibleDate(COMVariant::createFromUtcDateTime(str2Datetime("4/3/2009 10:00:00",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,64);
		com_Chart.LevelCount(2);
		com_Chart.UnitWidth(16);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<r><%d%>-<%mmm%>");
			com_Level.Unit(4096/*exDay*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label("<%hh%>");
			com_Level1.Unit(65536/*exHour*/);
			com_Level1.Count(2);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddItem("Default");
		com_Items.ItemNonworkingUnits(com_Items.AddItem("All-Non-Working"),COMVariant::createFromBoolean(false),"1");
		com_Items.AddItem("Default");
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,64);
}
*/
965
How do I specify for an item all units as being working units

public void init()
{
	COM com_Chart,com_Items,com_Level,com_Level1;
	anytype var_Chart,var_Items,var_Level,var_Level1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.AllowChartScrollPage(true);
	exg2antt1.Columns().Add("Non-Work");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.AllowCreateBar(1/*exCreateBarAuto*/);
		com_Chart.FirstVisibleDate(COMVariant::createFromUtcDateTime(str2Datetime("4/3/2009 10:00:00",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,64);
		com_Chart.LevelCount(2);
		com_Chart.UnitWidth(16);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<r><%d%>-<%mmm%>");
			com_Level.Unit(4096/*exDay*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label("<%hh%>");
			com_Level1.Unit(65536/*exHour*/);
			com_Level1.Count(2);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddItem("Default");
		com_Items.ItemNonworkingUnits(com_Items.AddItem("All-Working"),COMVariant::createFromBoolean(false),"0");
		com_Items.AddItem("Default");
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,64);
}
*/
964
How can I programmatically specify different non-working units ( days, hours ) for different items

public void init()
{
	COM com_Bar,com_Bars,com_Chart,com_Items,com_Level,com_Level1;
	anytype var_Bar,var_Bars,var_Chart,var_Items,var_Level,var_Level1;
	int h;
	str var_s;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.AllowChartScrollPage(true);
	exg2antt1.Columns().Add("Non-Work");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.AllowCreateBar(1/*exCreateBarAuto*/);
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar = COM::createFromObject(com_Bars).Add("Task:Split"); com_Bar = var_Bar;
		com_Bar.Shortcut("Task");
		com_Chart.FirstVisibleDate(COMVariant::createFromUtcDateTime(str2Datetime("7/13/2009 12:00:00",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,52);
		com_Chart.LevelCount(2);
		com_Chart.UnitWidth(16);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<r><b><%d%></b> <%mmm%> <%yyyy%>");
			com_Level.Unit(4096/*exDay*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label("<%hh%>");
			com_Level1.Unit(65536/*exHour*/);
			com_Level1.Count(2);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.ItemNonworkingUnits(h,COMVariant::createFromBoolean(false),"(shortdate(value) = #7/14/2009# and hour(value) >= 6 and hour(value) <= 12)");
		com_Items.AddBar(h,"Task",COMVariant::createFromUtcDateTime(str2Datetime("7/14/2009 4:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("7/14/2009 14:00:00",213)));
		h = com_Items.AddItem("Item 2");
		var_s = "(((hour(value) >= 4 and hour(value) <= 16) or hour(value) = 2) and month(value) = 7) or ((hour(value) >= 2 and hour(value) < 10)";
		var_s = var_s + ") and month(value) = 6 or weekday(value) = 6";
		com_Items.ItemNonworkingUnits(h,COMVariant::createFromBoolean(false),var_s);
		com_Items.AddBar(h,"Task",COMVariant::createFromUtcDateTime(str2Datetime("7/14/2009 1:00:00",213)),COMVariant::createFromUtcDateTime(str2Datetime("7/14/2009 6:00:00",213)));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,52);
}
*/
963
I am programmatically select a date using the Chart.SelectDate property, but can't see why the date is not highlighted. What am I doing wrong
public void init()
{
	COM com_Chart;
	anytype var_Chart;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.SelectLevel(1);
		com_Chart.SelectDate(str2Date("1/4/2001",213),true);
}
962
How do I show a shorter line in the chart's level

public void init()
{
	COM com_Chart,com_Level,com_Level1;
	anytype var_Chart,var_Level,var_Level1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.GridLineColor(WinApi::RGB2int(128,128,128));
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.DrawLevelSeparator(0/*exLevelNoLine*/);
		com_Chart.UnitWidth(24);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,0);
		com_Chart.LevelCount(2);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Alignment(1/*CenterAlignment*/);
			com_Level.Label("<%dddd%>");
			com_Level.DrawTickLines(18/*exLevelLowerHalf | exLevelSolidLine*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label(COMVariant::createFromInt(65536));
			com_Level1.Count(6);
			com_Level1.DrawTickLines(578/*0x242 | exLevelMiddleLine | exLevelSolidLine*/);
			com_Level1.DrawTickLinesFrom(0,34/*exLevelUpperHalf | exLevelSolidLine*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,0);
}
*/
961
How do I replicate the screen shot http://www.exontrol.com/images/exg2antt9.jpg

public void init()
{
	COM com_Appearance,com_Bar,com_Chart,com_Column,com_Column1,com_Columns,com_Items,com_Level,com_Level1;
	anytype var_Appearance,var_Bar,var_Chart,var_Column,var_Column1,var_Columns,var_Items,var_Level,var_Level1;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Appearance = exg2antt1.VisualAppearance(); com_Appearance = var_Appearance;
		com_Appearance.Add(1,"C:\\Program Files\\Exontrol\\ExG2antt.NET\\Sample\\EBN\\headdark.ebn");
		com_Appearance.Add(2,"C:\\Program Files\\Exontrol\\ExG2antt.NET\\Sample\\EBN\\xpbsel.ebn");
		com_Appearance.Add(3,"C:\\Program Files\\Exontrol\\ExG2antt.NET\\Sample\\EBN\\headligh.ebn");
		com_Appearance.Add(4,"CP:1 0 0 1 1");
	exg2antt1.BackColorHeader(0x4000000);
	exg2antt1.Chart().BackColorLevelHeader(0x4000000);
	exg2antt1.SelBackColor(0x20000ff);
	exg2antt1.GridLineColor(WinApi::RGB2int(128,128,128));
	exg2antt1.HeaderHeight(22);
	exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0));
	exg2antt1.MarkSearchColumn(false);
	exg2antt1.ScrollBySingleLine(false);
	exg2antt1.ShowFocusRect(false);
	exg2antt1.DefaultItemHeight(48);
	var_Columns = exg2antt1.Columns(); com_Columns = var_Columns;
		var_Column = COM::createFromVariant(com_Columns.Add("Group")); com_Column = var_Column;
			com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true));
			com_Column.Def(4/*exCellBackColor*/,COMVariant::createFromInt(50331648));
			com_Column.LevelKey(COMVariant::createFromInt(1));
		var_Column1 = COM::createFromVariant(com_Columns.Add("Histogram")); com_Column1 = var_Column1;
			com_Column1.Width(18);
			com_Column1.AllowSizing(false);
			com_Column1.LevelKey(COMVariant::createFromInt(1));
			com_Column1.Position(0);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/11/2009",213)));
		com_Chart.DrawGridLines(-1/*exAllLines*/);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,96);
		com_Chart.LevelCount(2);
		com_Chart.DrawLevelSeparator(false);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<%mmmm%> <%yyyy%>");
			com_Level.Unit(16/*exMonth*/);
			com_Level.Alignment(1/*CenterAlignment*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.FormatLabel("weekday(dvalue)=1?value:''");
			com_Level1.DrawTickLines(18/*exLevelLowerHalf | exLevelSolidLine*/);
			com_Level1.DrawTickLinesFrom(0,2/*exLevelSolidLine*/);
			com_Level1.Alignment(1/*CenterAlignment*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.Color(0x2000000);
			com_Bar.Height(18);
			com_Bar.OverlaidType(515/*exOverlaidBarsStackAutoArrange | exOverlaidBarsStack*/);
			com_Bar.HistogramColor(0x1000000);
			com_Bar.HistogramType(1/*exHistOverAllocation*/);
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(48);
		com_Chart.HistogramView(4/*exHistogramCheckedItems*/);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Group <b>A</b>");
		com_Items.CellValueFormat(h,COMVariant::createFromInt(0),1/*exHTML*/);
		com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(1));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("6/12/2009",213)),COMVariant::createFromDate(str2Date("6/19/2009",213)),"K1","Requirements");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("6/13/2009",213)),COMVariant::createFromDate(str2Date("6/21/2009",213)),"K2","Sales & Marketing");
		com_Items.ItemBar(h,"K1",33/*exBarColor*/,COMVariant::createFromInt(255));
		com_Items.ItemBar(h,"K2",33/*exBarColor*/,COMVariant::createFromInt(255));
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		h = com_Items.AddItem("Group <b>B</b>");
		com_Items.CellValueFormat(h,COMVariant::createFromInt(0),1/*exHTML*/);
		com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(1));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("6/14/2009",213)),COMVariant::createFromDate(str2Date("6/23/2009",213)),"K1","<b>GUI</b> Design");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("6/18/2009",213)),COMVariant::createFromDate(str2Date("6/25/2009",213)),"K2","Class Design");
		h = com_Items.AddItem("Group <b>C</b>");
		com_Items.CellValueFormat(h,COMVariant::createFromInt(0),1/*exHTML*/);
		com_Items.CellMerge(h,COMVariant::createFromInt(0),COMVariant::createFromInt(1));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("6/12/2009",213)),COMVariant::createFromDate(str2Date("6/19/2009",213)),"K1","<b>GUI</b> Coding");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("6/13/2009",213)),COMVariant::createFromDate(str2Date("6/25/2009",213)),"K2","Design & Concept");
		com_Items.ItemBar(h,"K1",33/*exBarColor*/,COMVariant::createFromInt(65280));
		com_Items.ItemBar(h,"K2",33/*exBarColor*/,COMVariant::createFromInt(65280));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
960
How can I remove all bars from the chart
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.ClearBars(0);
}
959
How can I change the color for all bars with a specified key
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.ItemBar(0,"K1",33/*exBarColor*/,COMVariant::createFromInt(255));
}
958
Is there any automatic way to change a property for all bars with a specified key
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.ItemBar(0,"K1",33/*exBarColor*/,COMVariant::createFromInt(255));
}
957
How can I remove all bars with specified key
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.RemoveBar(0,"K1");
}
956
How do I several bars with different vertical offsets

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item");
		com_Items.ItemHeight(h,62);
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"T1");
		com_Items.ItemBar(h,"T1",18/*exBarOffset*/,COMVariant::createFromInt(-23));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"T2");
		com_Items.ItemBar(h,"T2",18/*exBarOffset*/,COMVariant::createFromInt(-11));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"T3");
		com_Items.ItemBar(h,"T3",18/*exBarOffset*/,COMVariant::createFromInt(1));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"T4");
		com_Items.ItemBar(h,"T4",18/*exBarOffset*/,COMVariant::createFromInt(13));
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"T5");
		com_Items.ItemBar(h,"T5",18/*exBarOffset*/,COMVariant::createFromInt(25));
}
955
Is there any option to show gradient bars without using EBN technology

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exg2antt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.Color(WinApi::RGB2int(255,0,0));
		com_Bar.StartColor(WinApi::RGB2int(0,255,0));
		com_Bar.EndColor(WinApi::RGB2int(255,255,0));
		com_Bar.Pattern(32/*exPatternBox*/);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"");
}
954
How can I define a bar with border and solid filling

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exg2antt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.Color(WinApi::RGB2int(255,0,0));
		com_Bar.StartColor(WinApi::RGB2int(255,255,0));
		com_Bar.EndColor(WinApi::RGB2int(255,255,0));
		com_Bar.Pattern(32/*exPatternBox*/);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"");
}
953
How can I define a bar with border and solid filling

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exg2antt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.Color(WinApi::RGB2int(255,0,0));
		com_Bar.Pattern(32/*exPatternBox*/);
		com_Bar.Height(18);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"");
		com_Items.ItemBar(h,"",7/*exBarBackColor*/,COMVariant::createFromInt(65535));
}
952
How do I define a bar with solid border and filling

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exg2antt1.VisualAppearance().Add(1,"C:\\Program Files\\Exontrol\\ExG2antt.NET\\sample\\EBN\\blackboxt.ebn");
	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exg2antt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.Color(0x1000000);
		com_Bar.Height(18);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"");
		com_Items.ItemBar(h,"",33/*exBarColor*/,COMVariant::createFromInt(255));
		com_Items.ItemBar(h,"",7/*exBarBackColor*/,COMVariant::createFromInt(65535));
}
951
Can I control the units/resource/effort being allocated to a bar when displaying OverAllocation histogram

public void init()
{
	COM com_Bar,com_Chart,com_Column,com_Editor,com_Items;
	anytype var_Bar,var_Chart,var_Column,var_Editor,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Effort")); com_Column = var_Column;
		com_Column.Def(18/*exCellValueToItemBarProperty*/,COMVariant::createFromInt(21));
		var_Editor = COM::createFromObject(com_Column.Editor()); com_Editor = var_Editor;
		com_Editor.EditType(4/*SpinType*/);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,96);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(202);
		com_Chart.HistogramView(112/*exHistogramAllItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(2050/*exRectangularCurve | exPatternDot*/);
			com_Bar.HistogramType(1/*exHistOverAllocation*/);
			com_Bar.HistogramCriticalValue(50);
			com_Bar.HistogramGridLinesColor(WinApi::RGB2int(192,192,192));
			com_Bar.HistogramRulerLinesColor(WinApi::RGB2int(0,0,1));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AllowCellValueToItemBar(true);
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/25/2005",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(2));
		h1 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/24/2005",213)),COMVariant::createFromDate(str2Date("6/28/2005",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(1));
		h1 = com_Items.AddItem("Task 3");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/27/2005",213)),COMVariant::createFromDate(str2Date("7/1/2005",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(2));
		h1 = com_Items.AddItem("Task 4");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/30/2005",213)),COMVariant::createFromDate(str2Date("7/2/2005",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(1));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
950
Can I control the units/resource/effort being allocated to a bar when displaying Overload histogram

public void init()
{
	COM com_Bar,com_Chart,com_Column,com_Editor,com_Items;
	anytype var_Bar,var_Chart,var_Column,var_Editor,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Effort")); com_Column = var_Column;
		com_Column.Def(18/*exCellValueToItemBarProperty*/,COMVariant::createFromInt(21));
		var_Editor = COM::createFromObject(com_Column.Editor()); com_Editor = var_Editor;
		com_Editor.EditType(4/*SpinType*/);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,96);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(128);
		com_Chart.HistogramView(112/*exHistogramAllItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(com_Bar.Pattern());
			com_Bar.HistogramType(0/*exHistOverload*/);
			com_Bar.HistogramCriticalValue(3);
			com_Bar.ShowHistogramValues("value>3?255:1");
			com_Bar.HistogramItems(-11);
			com_Bar.HistogramGridLinesColor(WinApi::RGB2int(192,192,192));
			com_Bar.HistogramRulerLinesColor(WinApi::RGB2int(0,0,1));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AllowCellValueToItemBar(true);
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/23/2005",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(4));
		h1 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/24/2005",213)),COMVariant::createFromDate(str2Date("6/26/2005",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(3));
		h1 = com_Items.AddItem("Task 3");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/27/2005",213)),COMVariant::createFromDate(str2Date("6/29/2005",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(2));
		h1 = com_Items.AddItem("Task 4");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/30/2005",213)),COMVariant::createFromDate(str2Date("7/2/2005",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromInt(1));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
949
How can I display double-lines curves in the histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	;

	super();

	exg2antt1.AntiAliasing(true);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,48);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(64);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(512/*exBezierCurve*/);
			com_Bar.HistogramItems(3);
			com_Bar.HistogramBorderColor(WinApi::RGB2int(128,0,0));
			com_Bar.HistogramColor(WinApi::RGB2int(255,0,0));
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,48);
}
*/
948
Is there any option to display values in the histogram using different colors

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
			com_Bar.HistogramItems(6);
			com_Bar.ShowHistogramValues("value>1?255:65280");
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
}
947
Is there any option to display values in the histogram using different colors

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
			com_Bar.HistogramItems(6);
			com_Bar.ShowHistogramValues("value>1?255:1");
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
}
946
How can I display only few values in the histogram, such as the values greater than a value

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
			com_Bar.ShowHistogramValues("value>1");
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
}
945
How can I display values in the histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
			com_Bar.ShowHistogramValues("1");
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
}
944
How can I scroll the chart to find a bar
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Column");
	exg2antt1.Chart().LevelCount(2);
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(0,64);
	exg2antt1.DefaultItemHeight(32);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(1));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(2));
		com_Items.AddBar(com_Items.AddItem("Item 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(3));
		com_Items.AddBar(com_Items.AddItem("Item 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(4));
		com_Items.AddBar(com_Items.AddItem("Item 5"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(5));
		com_Items.AddBar(com_Items.AddItem("Item 6"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(6));
		com_Items.AddBar(com_Items.AddItem("Item 7"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(7));
		com_Items.AddBar(com_Items.AddItem("Item 8"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(8));
		com_Items.AddBar(com_Items.AddItem("Item 9"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(8));
		com_Items.AddBar(com_Items.AddItem("Item 10"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(10));
		com_Items.AddBar(com_Items.AddItem("Item 11"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(11));
		com_Items.AddBar(com_Items.AddItem("Item 12"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(12));
		com_Items.AddBar(com_Items.AddItem("Item 13"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(13));
		com_Items.AddBar(com_Items.AddItem("Item 14"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromInt(14));
	h = exg2antt1.Items().FindBar(COMVariant::createFromInt(14));
	exg2antt1.Items().EnsureVisibleItem(h);
	exg2antt1.Chart().ScrollTo(exg2antt1.Items().ItemBar(h,COMVariant::createFromInt(14),1/*exBarStart*/),COMVariant::createFromInt(1));
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,64);
}
*/
943
Can I change the color/marker/frame for selected bars

public void init()
{
	COM com_Appearance,com_Chart,com_Items;
	anytype var_Appearance,var_Chart,var_Items;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Appearance = exg2antt1.VisualAppearance(); com_Appearance = var_Appearance;
		com_Appearance.Add(2,"c:\\exontrol\\images\\normal.ebn");
		com_Appearance.Add(1,"CP:2 3 2 -3 -2");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213)));
		com_Chart.SelBarColor(0x1000000);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,48);
	exg2antt1.Columns().Add("Task");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2002",213)),COMVariant::createFromDate(str2Date("1/4/2002",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/6/2002",213)),COMVariant::createFromDate(str2Date("1/10/2002",213)),"B");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/11/2002",213)),COMVariant::createFromDate(str2Date("1/14/2002",213)),"C");
		com_Items.ItemBar(h,"A",257/*exBarSelected*/,COMVariant::createFromBoolean(true));
		com_Items.ItemBar(h,"B",257/*exBarSelected*/,COMVariant::createFromBoolean(true));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,48);
}
*/
942
Can I display a larger marker for selected bars, eventually using the EBN technology

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213)));
		com_Chart.SelBarColor(0x1000000);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,48);
	exg2antt1.Columns().Add("Task");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2002",213)),COMVariant::createFromDate(str2Date("1/4/2002",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/6/2002",213)),COMVariant::createFromDate(str2Date("1/10/2002",213)),"B");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/11/2002",213)),COMVariant::createFromDate(str2Date("1/14/2002",213)),"C");
		com_Items.ItemBar(h,"A",257/*exBarSelected*/,COMVariant::createFromBoolean(true));
		com_Items.ItemBar(h,"B",257/*exBarSelected*/,COMVariant::createFromBoolean(true));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,48);
}
*/
941
How do I change the color for the selected bars

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Debug(true);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213)));
		com_Chart.SelBarColor(WinApi::RGB2int(255,0,0));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,48);
	exg2antt1.Columns().Add("Task");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2002",213)),COMVariant::createFromDate(str2Date("1/4/2002",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/6/2002",213)),COMVariant::createFromDate(str2Date("1/10/2002",213)),"B");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/11/2002",213)),COMVariant::createFromDate(str2Date("1/14/2002",213)),"C");
		com_Items.ItemBar(h,"A",257/*exBarSelected*/,COMVariant::createFromBoolean(true));
		com_Items.ItemBar(h,"B",257/*exBarSelected*/,COMVariant::createFromBoolean(true));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,48);
}
*/
940
How can I change the background color for child bars of a summary bar

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h1,hR1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exg2antt1.HasLines(false);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.AllowCreateBar(false);
		com_Chart.AllowLinkBars(false);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2008",213)));
		com_Chart.LevelCount(2);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,112);
	exg2antt1.Columns().Add("");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		hR1 = com_Items.AddItem("Team 1");
		com_Items.AddBar(hR1,"Summary",COMVariant::createFromDate(str2Date("1/2/2008",213)),COMVariant::createFromDate(str2Date("1/8/2008",213)),"");
		com_Items.ItemBar(hR1,"",34/*exSummaryBarBackColor*/,COMVariant::createFromInt(12895428));
		h1 = com_Items.InsertItem(hR1,,"Member 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2008",213)),COMVariant::createFromDate(str2Date("1/7/2008",213)));
		com_Items.DefineSummaryBars(hR1,"",h1,"");
		h1 = com_Items.InsertItem(hR1,,"Member 2");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/4/2008",213)),COMVariant::createFromDate(str2Date("1/9/2008",213)));
		com_Items.DefineSummaryBars(hR1,"",h1,"");
		h1 = com_Items.InsertItem(hR1,,"Member 3");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/5/2008",213)),COMVariant::createFromDate(str2Date("1/10/2008",213)));
		com_Items.DefineSummaryBars(hR1,"",h1,"");
		com_Items.ExpandItem(hR1,true);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,112);
}
*/
939
How can I allow resizing the bar only in the right part of the bar
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarCanResize*/,COMVariant::createFromInt(2));
}
938
How can I allow resizing the bar only in the left part of the bar
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exg2antt1.Columns().Add("Task");
	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarCanResize*/,COMVariant::createFromInt(1));
}
937
How can I show the links that starts from selected bar being more visible, while the rest being transparent

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h1,h2,h3;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("9/20/2006",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,64);
		com_Chart.ShowLinksWidth(1/*exShowLinksStartFrom*/,2);
		com_Chart.ShowLinksStyle(1/*exShowLinksStartFrom*/,2/*exLinkDot*/);
		com_Chart.ShowLinksColor(2/*exShowLinksEndTo*/,WinApi::RGB2int(200,200,200));
		com_Chart.ShowLinksColor(4/*exShowUnselectedLinks*/,WinApi::RGB2int(200,200,200));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("9/21/2006",213)),COMVariant::createFromDate(str2Date("9/23/2006",213)));
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("9/25/2006",213)),COMVariant::createFromDate(str2Date("9/27/2006",213)));
		com_Items.ItemBar(h2,"",257/*exBarSelected*/,COMVariant::createFromBoolean(true));
		com_Items.AddLink("L1",h1,"",h2,"");
		com_Items.Link("L1",12/*exLinkText*/,"L1");
		h3 = com_Items.AddItem("Task 3");
		com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("9/29/2006",213)),COMVariant::createFromDate(str2Date("10/2/2006",213)));
		com_Items.AddLink("L2",h2,"",h3,"");
		com_Items.Link("L2",12/*exLinkText*/,"L2");
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,64);
}
*/
936
How can I show only the links that starts from selected bar

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h1,h2,h3;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.MarkSearchColumn(false);
	exg2antt1.OnResizeControl(1/*exResizeChart*/);
	exg2antt1.Columns().Add("Tasks");
	COM::createFromVariant(exg2antt1.Columns().Add("Start")).Visible(false);
	COM::createFromVariant(exg2antt1.Columns().Add("End")).Visible(false);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("9/20/2006",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,64);
		com_Chart.ShowLinksColor(2/*exShowLinksEndTo*/,com_Chart.BackColor());
		com_Chart.ShowLinksColor(4/*exShowUnselectedLinks*/,com_Chart.BackColor());
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("9/21/2006",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(2),COMVariant::createFromDate(str2Date("9/24/2006",213)));
		com_Items.AddBar(h1,"Task",com_Items.CellValue(h1,COMVariant::createFromInt(1)),com_Items.CellValue(h1,COMVariant::createFromInt(2)));
		h2 = com_Items.InsertItem(h,,"Task 2");
		com_Items.CellValue(h2,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("9/25/2006",213)));
		com_Items.CellValue(h2,COMVariant::createFromInt(2),COMVariant::createFromDate(str2Date("9/28/2006",213)));
		com_Items.AddBar(h2,"Task",com_Items.CellValue(h2,COMVariant::createFromInt(1)),com_Items.CellValue(h2,COMVariant::createFromInt(2)));
		com_Items.ItemBar(h2,"",257/*exBarSelected*/,COMVariant::createFromBoolean(true));
		com_Items.AddLink("L1",h1,"",h2,"");
		h3 = com_Items.InsertItem(h,,"Task 3");
		com_Items.CellValue(h3,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("9/29/2006",213)));
		com_Items.CellValue(h3,COMVariant::createFromInt(2),COMVariant::createFromDate(str2Date("10/2/2006",213)));
		com_Items.AddBar(h3,"Task",com_Items.CellValue(h3,COMVariant::createFromInt(1)),com_Items.CellValue(h3,COMVariant::createFromInt(2)));
		com_Items.AddLink("L2",h2,"",h3,"");
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,64);
}
*/
935
How can I hide links that are not related to selected bar

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h1,h2,h3;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.MarkSearchColumn(false);
	exg2antt1.OnResizeControl(1/*exResizeChart*/);
	exg2antt1.Columns().Add("Tasks");
	COM::createFromVariant(exg2antt1.Columns().Add("Start")).Visible(false);
	COM::createFromVariant(exg2antt1.Columns().Add("End")).Visible(false);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("9/20/2006",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,64);
		com_Chart.ShowLinksColor(4/*exShowUnselectedLinks*/,com_Chart.BackColor());
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.CellValue(h1,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("9/21/2006",213)));
		com_Items.CellValue(h1,COMVariant::createFromInt(2),COMVariant::createFromDate(str2Date("9/24/2006",213)));
		com_Items.AddBar(h1,"Task",com_Items.CellValue(h1,COMVariant::createFromInt(1)),com_Items.CellValue(h1,COMVariant::createFromInt(2)));
		com_Items.ItemBar(h1,"",257/*exBarSelected*/,COMVariant::createFromBoolean(true));
		h2 = com_Items.InsertItem(h,,"Task 2");
		com_Items.CellValue(h2,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("9/25/2006",213)));
		com_Items.CellValue(h2,COMVariant::createFromInt(2),COMVariant::createFromDate(str2Date("9/28/2006",213)));
		com_Items.AddBar(h2,"Task",com_Items.CellValue(h2,COMVariant::createFromInt(1)),com_Items.CellValue(h2,COMVariant::createFromInt(2)));
		com_Items.AddLink("L1",h1,"",h2,"");
		h3 = com_Items.InsertItem(h,,"Task 3");
		com_Items.CellValue(h3,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("9/29/2006",213)));
		com_Items.CellValue(h3,COMVariant::createFromInt(2),COMVariant::createFromDate(str2Date("10/2/2006",213)));
		com_Items.AddBar(h3,"Task",com_Items.CellValue(h3,COMVariant::createFromInt(1)),com_Items.CellValue(h3,COMVariant::createFromInt(2)));
		com_Items.AddLink("L2",h2,"",h3,"");
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,64);
}
*/
934
How can I show the direction of the link using EBN files

public void init()
{
	COM com_Appearance,com_Chart,com_Items;
	anytype var_Appearance,var_Chart,var_Items;
	int h1,h2;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Appearance = exg2antt1.VisualAppearance(); com_Appearance = var_Appearance;
		com_Appearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
		com_Appearance.Add(2,"CP:1 -1 -1 1 1");
		com_Appearance.Add(3,"CP:1 -2 -2 2 2");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,128);
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"B1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"B2");
		com_Items.AddLink("L1",h1,"B1",h2,"B2");
		com_Items.Link("L1",14/*exLinkArrowColor*/,COMVariant::createFromInt(16777216));
		h2 = com_Items.AddItem("Task 3");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"B3");
		com_Items.AddLink("L2",h1,"B1",h2,"B3");
		com_Items.Link("L2",14/*exLinkArrowColor*/,COMVariant::createFromInt(33554432));
		h2 = com_Items.AddItem("Task 4");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"B5");
		com_Items.AddLink("L3",h1,"B1",h2,"B5");
		com_Items.Link("L3",14/*exLinkArrowColor*/,COMVariant::createFromInt(50331648));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,128);
}
*/
933
How can I show round links

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"B1");
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"B2");
		com_Items.AddLink("L1",com_Items.FindItem("Item 1",COMVariant::createFromInt(0)),"B1",com_Items.FindItem("Item 2",COMVariant::createFromInt(0)),"B2");
		com_Items.Link("L1",15/*exLinkShowRound*/,COMVariant::createFromBoolean(true));
}
932
How can I change the color to display the arrow of the link

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"B1");
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/14/2001",213)),"B2");
		com_Items.AddLink("L1",com_Items.FindItem("Item 1",COMVariant::createFromInt(0)),"B1",com_Items.FindItem("Item 2",COMVariant::createFromInt(0)),"B2");
		com_Items.Link("L1",14/*exLinkArrowColor*/,COMVariant::createFromInt(255));
}
931
I use UnitScale: exHour and I want to show only from 9 to 18 hour. The idea is to show only the working part of a day. Is this possible

public void init()
{
	COM com_Chart,com_Level,com_Level1;
	anytype var_Chart,var_Level,var_Level1;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.MarkTodayColor(com_Chart.BackColor());
		com_Chart.BackColorLevelHeader(WinApi::RGB2int(255,255,255));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,0);
		com_Chart.LevelCount(2);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<b><%dddd%></b> <%d%>");
			com_Level.Alignment(1/*CenterAlignment*/);
			com_Level.DrawTickLines(0/*exLevelNoLine*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label(COMVariant::createFromInt(65536));
			com_Level1.DrawTickLines(65/*exLevelMiddleLine | exLevelDotLine*/);
			com_Level1.DrawTickLinesFrom(0,1/*exLevelDotLine*/);
		com_Chart.NonworkingHours(16253439);
		com_Chart.ShowNonworkingUnits(false);
		com_Chart.ShowNonworkingDates(false);
		com_Chart.ShowNonworkingHours(false);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,0);
}
*/
930
Can I display tick lines from other level to my base level so time units gets separated more clearly

public void init()
{
	COM com_Chart,com_Level,com_Level1;
	anytype var_Chart,var_Level,var_Level1;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.DrawLevelSeparator(0/*exLevelNoLine*/);
		com_Chart.UnitWidth(24);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,0);
		com_Chart.LevelCount(2);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Alignment(1/*CenterAlignment*/);
			com_Level.Label("<%dddd%>");
			com_Level.DrawTickLines(18/*exLevelLowerHalf | exLevelSolidLine*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label(COMVariant::createFromInt(65536));
			com_Level1.Count(6);
			com_Level1.DrawTickLines(66/*exLevelMiddleLine | exLevelSolidLine*/);
			com_Level1.DrawTickLinesFrom(0,2/*exLevelSolidLine*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,0);
}
*/
929
Is there any property to change the style of the tick lines being shown in the chart

public void init()
{
	COM com_Chart,com_Level,com_Level1;
	anytype var_Chart,var_Level,var_Level1;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.UnitWidth(24);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,0);
		com_Chart.LevelCount(2);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Alignment(1/*CenterAlignment*/);
			com_Level.Label("<%dddd%>");
			com_Level.DrawTickLines(2/*exLevelSolidLine*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label(COMVariant::createFromInt(65536));
			com_Level1.Count(6);
			com_Level1.DrawTickLines(34/*exLevelUpperHalf | exLevelSolidLine*/);
		com_Chart.DrawLevelSeparator(2/*exLevelSolidLine*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,0);
}
*/
928
Is there any property to change the style of the tick lines being shown in the chart

public void init()
{
	COM com_Chart,com_Level,com_Level1;
	anytype var_Chart,var_Level,var_Level1;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,0);
		com_Chart.LevelCount(2);
		com_Chart.DrawLevelSeparator(2/*exLevelSolidLine*/);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<%dddd%>");
			com_Level.DrawTickLines(2/*exLevelSolidLine*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label(COMVariant::createFromInt(65536));
			com_Level1.Count(6);
			com_Level1.DrawTickLines(2/*exLevelSolidLine*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,0);
}
*/
927
How can I show the levels based on the base level so tick lines aligns better

public void init()
{
	COM com_Chart,com_Level;
	anytype var_Chart,var_Level;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.AdjustLevelsToBase(true);
		com_Chart.UnitWidth(24);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,0);
		com_Chart.LevelCount(2);
		var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level;
		com_Level.Label("<%dddd%>");
		var_Level = com_Chart.Level(1); com_Level = var_Level;
			com_Level.Label(COMVariant::createFromInt(65536));
			com_Level.Count(5);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,0);
}
*/
926
How can I show only working hours in other words only the working part of the day

public void init()
{
	COM com_Chart,com_Level,com_Level1;
	anytype var_Chart,var_Level,var_Level1;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.AllowSelectDate(false);
		com_Chart.MarkTodayColor(com_Chart.BackColor());
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,0);
		com_Chart.LevelCount(2);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<b><%dddd%></b> <%d%>");
			com_Level.Alignment(1/*CenterAlignment*/);
			com_Level.DrawTickLines(false);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label(COMVariant::createFromInt(65536));
			com_Level1.ReplaceLabel("09","<fgcolor=FF0000><b><font ;10>9</font></b></fgcolor>");
		com_Chart.NonworkingHours(16253439);
		com_Chart.ShowNonworkingUnits(false);
		com_Chart.ShowNonworkingDates(false);
		com_Chart.ShowNonworkingHours(false);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,0);
}
*/
925
How can I specify the effort for bars when displaying the overload histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,52);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(64);
		com_Chart.HistogramView(112/*exHistogramAllItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(com_Bar.Pattern());
			com_Bar.HistogramType(0/*exHistOverload*/);
			com_Bar.HistogramItems(-6);
			com_Bar.HistogramGridLinesColor(WinApi::RGB2int(192,192,192));
			com_Bar.HistogramRulerLinesColor(WinApi::RGB2int(0,0,1));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/23/2005",213)),"","4");
		com_Items.ItemBar(h1,"",21/*exBarEffort*/,COMVariant::createFromInt(4));
		h1 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/24/2005",213)),COMVariant::createFromDate(str2Date("6/26/2005",213)),"",COMVariant::createFromInt(3));
		com_Items.ItemBar(h1,"",21/*exBarEffort*/,COMVariant::createFromInt(3));
		h1 = com_Items.AddItem("Task 3");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/27/2005",213)),COMVariant::createFromDate(str2Date("6/29/2005",213)),"",COMVariant::createFromInt(2));
		com_Items.ItemBar(h1,"",21/*exBarEffort*/,COMVariant::createFromInt(2));
		h1 = com_Items.AddItem("Task 4");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/30/2005",213)),COMVariant::createFromDate(str2Date("7/2/2005",213)),"",COMVariant::createFromInt(1));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,52);
}
*/
924
How can I display the cumulative histogram and showing the bars that generated it using different colors

public void init()
{
	COM com_Bar,com_Chart,com_Column,com_Items;
	anytype var_Bar,var_Chart,var_Column,var_Items;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(64);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,128);
		com_Chart.HistogramView(1300/*exHistogramNoGrouping | exHistogramLeafItems | exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(1/*exPatternSolid*/);
			com_Bar.HistogramType(256/*exHistCumulative*/);
			com_Bar.HistogramCumulativeOriginalColorBars(false);
			com_Bar.HistogramItems(6);
			com_Bar.HistogramRulerLinesColor(WinApi::RGB2int(128,0,0));
			com_Bar.HistogramBorderColor(WinApi::RGB2int(1,0,0));
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Column")); com_Column = var_Column;
		com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true));
		com_Column.PartialCheck(true);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project 1");
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 3"),"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)));
		com_Items.CellState(com_Items.ItemByIndex(1),COMVariant::createFromInt(0),1);
		com_Items.ExpandItem(h,true);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,128);
}
*/
923
How can I show the cumulative histogram for my bar

public void init()
{
	COM com_Bar,com_Chart,com_Column,com_Items;
	anytype var_Bar,var_Chart,var_Column,var_Items;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(64);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,128);
		com_Chart.HistogramView(1300/*exHistogramNoGrouping | exHistogramLeafItems | exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(1/*exPatternSolid*/);
			com_Bar.HistogramType(256/*exHistCumulative*/);
			com_Bar.HistogramItems(6);
			com_Bar.HistogramRulerLinesColor(WinApi::RGB2int(128,0,0));
			com_Bar.HistogramBorderColor(WinApi::RGB2int(1,0,0));
	var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Column")); com_Column = var_Column;
		com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true));
		com_Column.PartialCheck(true);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project 1");
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 3"),"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)));
		com_Items.CellState(com_Items.ItemByIndex(1),COMVariant::createFromInt(0),1);
		com_Items.ExpandItem(h,true);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,128);
}
*/
922
How can I show some grid lines or ruler in the histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(64);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,78);
		com_Chart.HistogramView(1300/*exHistogramNoGrouping | exHistogramLeafItems | exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
			com_Bar.HistogramItems(6);
			com_Bar.HistogramRulerLinesColor(WinApi::RGB2int(128,0,0));
			com_Bar.HistogramGridLinesColor(WinApi::RGB2int(255,0,0));
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project 1");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.ExpandItem(h,true);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,78);
}
*/
921
Is there any property to show some grid lines in the histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(64);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,78);
		com_Chart.HistogramView(1300/*exHistogramNoGrouping | exHistogramLeafItems | exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
			com_Bar.HistogramItems(6);
			com_Bar.HistogramGridLinesColor(WinApi::RGB2int(255,0,0));
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project 1");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.ExpandItem(h,true);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,78);
}
*/
920
How can I specify a fixed number of bars/items being shown in the histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(64);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,78);
		com_Chart.HistogramView(1300/*exHistogramNoGrouping | exHistogramLeafItems | exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
			com_Bar.HistogramCriticalValue(3);
			com_Bar.HistogramItems(-6);
			com_Bar.HistogramRulerLinesColor(WinApi::RGB2int(1,0,0));
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project 1");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("Project 2");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)));
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("Project 3");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("Project 4");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)));
		com_Items.ExpandItem(h,true);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,78);
}
*/
919
Is there any option to specify a minimum number of bars/items displayed in the histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(64);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,78);
		com_Chart.HistogramView(1300/*exHistogramNoGrouping | exHistogramLeafItems | exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
			com_Bar.HistogramItems(6);
			com_Bar.HistogramGridLinesColor(WinApi::RGB2int(1,0,0));
			com_Bar.HistogramRulerLinesColor(WinApi::RGB2int(1,0,0));
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project 1");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("Project 2");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)));
		com_Items.ExpandItem(h,true);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,78);
}
*/
918
How can I show the histogram without grouping the bars based on their parents

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		com_Chart.HistogramView(1300/*exHistogramNoGrouping | exHistogramLeafItems | exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project 1");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("Project 2");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)));
		com_Items.ExpandItem(h,true);
}
917
How can I show the histogram for checked item and all recursively child items

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h;
	;

	super();

	exg2antt1.BeginUpdate();
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,128);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(128);
		com_Chart.HistogramView(788/*exHistogramRecLeafItems | exHistogramLeafItems | exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.CellState(h,COMVariant::createFromInt(0),1);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)));
		com_Items.ExpandItem(h,true);
		h = com_Items.InsertItem(h,,"SubProject");
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)));
		com_Items.ExpandItem(h,true);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,128);
}
*/
916
How can I show the histogram for checked item and its child items

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h;
	;

	super();

	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		com_Chart.HistogramView(276/*exHistogramLeafItems | exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project");
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.InsertItem(h,,"Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
		com_Items.ExpandItem(h,true);
}
915
How can I show the histogram for all items

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.SingleSel(false);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.LevelCount(2);
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		com_Chart.HistogramView(112/*exHistogramAllItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
	exg2antt1.EndUpdate();
}
914
How can I prevent selecting a new item when clicking the chart area so my selection is shown in the histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	;

	super();

	exg2antt1.SingleSel(false);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.SelectOnClick(false);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		com_Chart.HistogramView(2/*exHistogramSelectedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
		com_Items.SelectItem(com_Items.ItemByIndex(0),true);
}
913
How can I show bars in the histogram for selected items only

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	;

	super();

	exg2antt1.SingleSel(false);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		com_Chart.HistogramView(2/*exHistogramSelectedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.HistogramPattern(6/*exPatternBDiagonal*/);
	exg2antt1.Columns().Add("Column");
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)));
		com_Items.SelectItem(com_Items.ItemByIndex(0),true);
}
912
How can I change the color and size for the curve in the histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,64);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(68);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(258/*0x102 | exPatternDot*/);
			com_Bar.HistogramBorderColor(WinApi::RGB2int(0,255,0));
			com_Bar.HistogramBorderSize(5);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/25/2005",213)),COMVariant::createFromInt(1),COMVariant::createFromInt(1));
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/23/2005",213)),COMVariant::createFromDate(str2Date("6/28/2005",213)),COMVariant::createFromInt(2),COMVariant::createFromInt(2));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,64);
}
*/
911
How can I change the color for the frame in the histogram

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,64);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(68);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(259/*0x103 | exPatternShadow*/);
			com_Bar.HistogramItems(5);
			com_Bar.HistogramBorderColor(WinApi::RGB2int(255,0,0));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/25/2005",213)),COMVariant::createFromInt(1),COMVariant::createFromInt(1));
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/23/2005",213)),COMVariant::createFromDate(str2Date("6/28/2005",213)),COMVariant::createFromInt(2),COMVariant::createFromInt(2));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,64);
}
*/
910
How can I force the histogram for a bar being shown all the time

public void init()
{
	COM com_Bar,com_Bar1,com_Bars,com_Chart,com_Items;
	anytype var_Bar,var_Bar1,var_Bars,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.ScrollBySingleLine(true);
	COM::createFromVariant(exg2antt1.Columns().Add("Tasks")).Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true));
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,64);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(68);
		com_Chart.HistogramView(20/*exHistogramUnlockedItems | exHistogramCheckedItems*/);
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar = COM::createFromObject(com_Bars).Copy("Task","H"); com_Bar = var_Bar;
			com_Bar.Color(WinApi::RGB2int(0,255,0));
			com_Bar.HistogramPattern(256);
			com_Bar.HistogramItems(5);
			com_Bar.HistogramColor(com_Bar.Color());
			com_Bar.HistogramGridLinesColor(WinApi::RGB2int(128,128,128));
			com_Bar.HistogramRulerLinesColor(WinApi::RGB2int(0,0,1));
		var_Bar1 = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar1 = var_Bar1;
			com_Bar1.HistogramCriticalColor(WinApi::RGB2int(0,0,128));
			com_Bar1.HistogramPattern(com_Bar1.Pattern());
			com_Bar1.HistogramItems(5);
			com_Bar1.HistogramGridLinesColor(WinApi::RGB2int(128,128,128));
			com_Bar1.HistogramRulerLinesColor(WinApi::RGB2int(0,0,1));
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Hidden");
		com_Items.AddBar(h1,"H",COMVariant::createFromDate(str2Date("6/23/2005",213)),COMVariant::createFromDate(str2Date("6/28/2005",213)),COMVariant::createFromInt(1));
		com_Items.AddBar(h1,"H",COMVariant::createFromDate(str2Date("6/24/2005",213)),COMVariant::createFromDate(str2Date("6/26/2005",213)),COMVariant::createFromInt(2));
		com_Items.CellState(h1,COMVariant::createFromInt(0),1);
		com_Items.ItemHeight(h1,0);
		com_Items.SelectableItem(h1,false);
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/25/2005",213)),COMVariant::createFromInt(1));
		com_Items.CellState(h1,COMVariant::createFromInt(0),1);
		h1 = com_Items.AddItem("Task 2");
		com_Items.CellState(h1,COMVariant::createFromInt(0),1);
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/24/2005",213)),COMVariant::createFromDate(str2Date("7/1/2005",213)),COMVariant::createFromInt(1));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,64);
}
*/
909
How can I remove a bar type from the histogram

public void init()
{
	COM com_Bar,com_Bar1,com_Bar2,com_Bars,com_Chart,com_Items;
	anytype var_Bar,var_Bar1,var_Bar2,var_Bars,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,40);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramCriticalColor(WinApi::RGB2int(0,0,128));
			com_Bar.HistogramPattern(com_Bar.Pattern());
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar1 = COM::createFromObject(com_Bars).Copy("Task","Green"); com_Bar1 = var_Bar1;
			com_Bar1.Color(WinApi::RGB2int(0,255,0));
			com_Bar1.HistogramPattern(com_Bar1.Pattern());
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Green",COMVariant::createFromDate(str2Date("6/22/2005",213)),COMVariant::createFromDate(str2Date("6/26/2005",213)),COMVariant::createFromInt(0));
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/25/2005",213)),COMVariant::createFromInt(1));
		com_Items.ItemBar(h1,COMVariant::createFromInt(1),18/*exBarOffset*/,COMVariant::createFromInt(3));
		h1 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h1,"Green",COMVariant::createFromDate(str2Date("6/28/2005",213)),COMVariant::createFromDate(str2Date("6/30/2005",213)),COMVariant::createFromInt(0));
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/27/2005",213)),COMVariant::createFromDate(str2Date("7/1/2005",213)),COMVariant::createFromInt(1));
		com_Items.ItemBar(h1,COMVariant::createFromInt(1),18/*exBarOffset*/,COMVariant::createFromInt(3));
	var_Bar2 = COM::createFromObject(exg2antt1.Chart().Bars()).Item("Green"); com_Bar2 = var_Bar2;
		com_Bar2.HistogramColor(com_Bar2.Color());
		com_Bar2.HistogramPattern(0/*exPatternEmpty*/);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,40);
}
*/
908
How can I show the two buttons in the vertical splitter but still resizes the chart when the control gets resized

public void init()
{
	;

	super();

	exg2antt1.OnResizeControl(513/*exSplitterShowButtons | exResizeChart*/);
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
	exg2antt1.Chart().LevelCount(2);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
907
I have seen a screen shot on your web page that shows two buttons on the vertical scroll bar. How can I show them
public void init()
{
	;

	super();

	exg2antt1.OnResizeControl(512/*exSplitterShowButtons*/);
	/*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,96);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(false,96);
}
*/
906
How can I disable selecting a new item once the user clicks the chart area

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	exg2antt1.SingleSel(false);
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.SelectOnClick(false);
		com_Chart.AllowCreateBar(1/*exCreateBarAuto*/);
		com_Chart.LevelCount(2);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,40);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(32);
		com_Chart.HistogramView(2/*exHistogramSelectedItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.HistogramPattern(1/*exPatternSolid*/);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/22/2005",213)),COMVariant::createFromDate(str2Date("6/26/2005",213)),COMVariant::createFromInt(0));
		com_Items.SelectItem(h1,true);
		h1 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/24/2005",213)),COMVariant::createFromDate(str2Date("6/30/2005",213)),COMVariant::createFromInt(0));
		com_Items.SelectItem(h1,true);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,40);
}
*/
905
Is there any option to display the chart's header in the bottom side of the histogram

public void init()
{
	COM com_Bar,com_Bar1,com_Bars,com_Chart,com_Items;
	anytype var_Bar,var_Bar1,var_Bars,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,40);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramView(112/*exHistogramAllItems*/);
		com_Chart.HistogramHeight(96);
		com_Chart.HistogramHeaderVisible(true);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.Color(WinApi::RGB2int(0,0,255));
			com_Bar.OverlaidType(1/*exOverlaidBarsOffset*/);
			com_Bar.OverlaidGroup("Task2");
			com_Bar.HistogramCriticalColor(WinApi::RGB2int(0,0,128));
			com_Bar.HistogramPattern(512/*exBezierCurve*/);
			com_Bar.HistogramType(1/*exHistOverAllocation*/);
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar1 = COM::createFromObject(com_Bars).Copy("Task","Task2"); com_Bar1 = var_Bar1;
			com_Bar1.Color(WinApi::RGB2int(0,255,0));
			com_Bar1.OverlaidType(1/*exOverlaidBarsOffset*/);
			com_Bar1.OverlaidGroup("Task");
			com_Bar1.HistogramCriticalColor(WinApi::RGB2int(0,128,0));
			com_Bar1.HistogramPattern(512/*exBezierCurve*/);
			com_Bar1.HistogramType(1/*exHistOverAllocation*/);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task2",COMVariant::createFromDate(str2Date("6/22/2005",213)),COMVariant::createFromDate(str2Date("6/26/2005",213)),COMVariant::createFromInt(0));
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/25/2005",213)),COMVariant::createFromInt(1));
		com_Items.ItemBar(h1,COMVariant::createFromInt(0),21/*exBarEffort*/,COMVariant::createFromInt(3));
		com_Items.ItemBar(h1,COMVariant::createFromInt(1),21/*exBarEffort*/,COMVariant::createFromInt(4));
		h1 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h1,"Task2",COMVariant::createFromDate(str2Date("6/28/2005",213)),COMVariant::createFromDate(str2Date("6/30/2005",213)),COMVariant::createFromInt(0));
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/27/2005",213)),COMVariant::createFromDate(str2Date("7/1/2005",213)),COMVariant::createFromInt(1));
		com_Items.ItemBar(h1,COMVariant::createFromInt(0),21/*exBarEffort*/,COMVariant::createFromInt(4));
		com_Items.ItemBar(h1,COMVariant::createFromInt(1),21/*exBarEffort*/,COMVariant::createFromInt(1));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,40);
}
*/
904
How can I display the child bars as soon as an item gets collapsed

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h,h1,h2,h3;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("9/20/2006",213)));
		com_Chart.ShowCollapsedBars(true);
		com_Chart.LevelCount(2);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,96);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Project 1");
		h1 = com_Items.InsertItem(h,,"Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("9/21/2006",213)),COMVariant::createFromDate(str2Date("9/23/2006",213)),"A");
		h2 = com_Items.InsertItem(h,,"Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("9/24/2006",213)),COMVariant::createFromDate(str2Date("9/26/2006",213)),"B");
		h3 = com_Items.InsertItem(h,,"Task 3");
		com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("9/27/2006",213)),COMVariant::createFromDate(str2Date("9/29/2006",213)),"C");
		h = com_Items.AddItem("Project 2");
		h1 = com_Items.InsertItem(h,,"Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("9/21/2006",213)),COMVariant::createFromDate(str2Date("9/23/2006",213)),"A");
		h2 = com_Items.InsertItem(h,,"Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("9/24/2006",213)),COMVariant::createFromDate(str2Date("9/26/2006",213)),"B");
		h3 = com_Items.InsertItem(h,,"Task 3");
		com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("9/27/2006",213)),COMVariant::createFromDate(str2Date("9/29/2006",213)),"C");
		com_Items.ExpandItem(h,true);
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,96);
}
*/
903
What exBarEffort property represents

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,40);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/9/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramView(112/*exHistogramAllItems*/);
		com_Chart.HistogramHeight(164);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramPattern(256);
			com_Bar.HistogramType(1/*exHistOverAllocation*/);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/10/2005",213)),COMVariant::createFromDate(str2Date("6/11/2005",213)),,"1/1=<b>100%");
		com_Items.ItemBar(h1,,4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
		h1 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/12/2005",213)),COMVariant::createFromDate(str2Date("6/14/2005",213)),,"1/2=<b>50%");
		com_Items.ItemBar(h1,,4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
		h1 = com_Items.AddItem("Task 3");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/15/2005",213)),COMVariant::createFromDate(str2Date("6/18/2005",213)),,"1/3=<b>33%");
		com_Items.ItemBar(h1,,4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
		h1 = com_Items.AddItem("Task 4");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/19/2005",213)),COMVariant::createFromDate(str2Date("6/23/2005",213)),,"1/4=<b>25%");
		com_Items.ItemBar(h1,,4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
		h1 = com_Items.AddItem("Task 5");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/24/2005",213)),COMVariant::createFromDate(str2Date("6/29/2005",213)),,"1/5=<b>20%");
		com_Items.ItemBar(h1,,4/*exBarHAlignCaption*/,COMVariant::createFromInt(18));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,40);
}
*/
902
Can I display multiple curves in the histogram

public void init()
{
	COM com_Bar,com_Bar1,com_Bars,com_Chart,com_Items;
	anytype var_Bar,var_Bar1,var_Bars,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,40);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramView(112/*exHistogramAllItems*/);
		com_Chart.HistogramHeight(64);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.Color(WinApi::RGB2int(0,0,255));
			com_Bar.OverlaidType(1/*exOverlaidBarsOffset*/);
			com_Bar.OverlaidGroup("Task2");
			com_Bar.HistogramCriticalColor(WinApi::RGB2int(0,0,128));
			com_Bar.HistogramPattern(512/*exBezierCurve*/);
			com_Bar.HistogramType(1/*exHistOverAllocation*/);
		var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars;
		var_Bar1 = COM::createFromObject(com_Bars).Copy("Task","Task2"); com_Bar1 = var_Bar1;
			com_Bar1.Color(WinApi::RGB2int(0,255,0));
			com_Bar1.OverlaidType(1/*exOverlaidBarsOffset*/);
			com_Bar1.OverlaidGroup("Task");
			com_Bar1.HistogramCriticalColor(WinApi::RGB2int(0,128,0));
			com_Bar1.HistogramPattern(512/*exBezierCurve*/);
			com_Bar1.HistogramType(1/*exHistOverAllocation*/);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task2",COMVariant::createFromDate(str2Date("6/22/2005",213)),COMVariant::createFromDate(str2Date("6/26/2005",213)),COMVariant::createFromInt(0));
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/25/2005",213)),COMVariant::createFromInt(1));
		com_Items.ItemBar(h1,COMVariant::createFromInt(0),21/*exBarEffort*/,COMVariant::createFromInt(3));
		com_Items.ItemBar(h1,COMVariant::createFromInt(1),21/*exBarEffort*/,COMVariant::createFromInt(4));
		h1 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h1,"Task2",COMVariant::createFromDate(str2Date("6/28/2005",213)),COMVariant::createFromDate(str2Date("6/30/2005",213)),COMVariant::createFromInt(0));
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/27/2005",213)),COMVariant::createFromDate(str2Date("7/1/2005",213)),COMVariant::createFromInt(1));
		com_Items.ItemBar(h1,COMVariant::createFromInt(0),21/*exBarEffort*/,COMVariant::createFromInt(4));
		com_Items.ItemBar(h1,COMVariant::createFromInt(1),21/*exBarEffort*/,COMVariant::createFromInt(1));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,40);
}
*/
901
How can I use the exBarEffort property

public void init()
{
	COM com_Bar,com_Chart,com_Items;
	anytype var_Bar,var_Chart,var_Items;
	int h1;
	;

	super();

	exg2antt1.BeginUpdate();
	exg2antt1.Columns().Add("Tasks");
	var_Chart = exg2antt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		com_Chart.NonworkingDays(0);
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,40);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/20/2005",213)));
		com_Chart.HistogramVisible(true);
		com_Chart.HistogramHeight(64);
		com_Chart.HistogramView(112/*exHistogramAllItems*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.HistogramCriticalColor(WinApi::RGB2int(255,0,0));
			com_Bar.HistogramPattern(512/*exBezierCurve*/);
			com_Bar.HistogramType(1/*exHistOverAllocation*/);
	var_Items = exg2antt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/21/2005",213)),COMVariant::createFromDate(str2Date("6/25/2005",213)));
		com_Items.ItemBar(h1,"",21/*exBarEffort*/,COMVariant::createFromInt(4));
		h1 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("6/27/2005",213)),COMVariant::createFromDate(str2Date("7/1/2005",213)));
		com_Items.ItemBar(h1,"",21/*exBarEffort*/,COMVariant::createFromInt(1));
	exg2antt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exg2antt1.Chart().PaneWidth(0,40);
}
*/